Control conditions flows
-
Hi, Mmm wasnt sure what to put in the subject lol anyways, Im busy with a web app and one of my pages contain quite a few controls for input. There are a few conditions of when certain controls need to be visible or not. Can anyone please give me some advice or suggestions on how to write proper code in working with conditions in this situation instead of hardcoding everything in a messy way. Please let me know if I didnt explain properly. Thanks
-
Hi, Mmm wasnt sure what to put in the subject lol anyways, Im busy with a web app and one of my pages contain quite a few controls for input. There are a few conditions of when certain controls need to be visible or not. Can anyone please give me some advice or suggestions on how to write proper code in working with conditions in this situation instead of hardcoding everything in a messy way. Please let me know if I didnt explain properly. Thanks
This is not the web dev forum, but you can set the
Visible
property of your control tofalse
andtrue
as you please.Cheers, Vıkram.
After all is said and done, much is said and little is done.
-
Hi, Mmm wasnt sure what to put in the subject lol anyways, Im busy with a web app and one of my pages contain quite a few controls for input. There are a few conditions of when certain controls need to be visible or not. Can anyone please give me some advice or suggestions on how to write proper code in working with conditions in this situation instead of hardcoding everything in a messy way. Please let me know if I didnt explain properly. Thanks
Will the conditions be known only at runtime? I recently finished working on web app that needed to be used by different companies with specific controls that could be visible depending on who the company was. The route chose was to create an xml file using control "id" & "visible" as fields. Before rendering the page I call on the xml, loop through the controls collection & set their visible properties. Bit of an ugly hack but it works pretty well.
I think I'm going to call my next project "Chuck Norris". It's a sure way to guarantee it's unbreakable.
• • •
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson