Maven4Champ
Technical User
- Jun 16, 2004
- 154
OK guys and gals,
I have quite a task on my hands right now that has a tight deadline and I am working through the logic portion for the next day or so before going full-on high-speed development time.
So here is the back-story:
We have an ASP/vb.Net driven page that allows a table of dynamically built values and associated checkboxes to populate the table such as this:
User Input = OptionBox1 Then
Populate Date
User Input = OptionBox2 Then
Populate Different Data
The data appears as so:
tblData1:
CHECKBOX DATA_KEY DATA_VALUE
[ ] value_one Value One
[ ] value_two Value Two
[ x ] value_three Value Three
So all that being said, that works fine. What I am doing is implementing a control that feeds off another table as such:
tblData2:
DATA_KEY DATA_KEY_NOT_VALID
value_one value_two
value_two value_one
value_two value_three
value_three value_one
The meaning of this table is basically a Bridge Table which takes the data key the user chose and looks up the non-valid keys in tblData2. What I want to then do is on the fly (upon checking value_two for instance), disable the ability to check value_one or value_three. I know which key is being checked but I don't know of a way to dynamically drive the enabled/disabled behavior without hard-coding logic into VB.NET for the ASP page.
So the task is this - upon checking a dynamically built value (over 200 possible choices), I need the ability to disable certain check-boxes dynamically. The same goes for un-checking a specific value and re-enabling the new value. All the while, I must retain integrity of this logic by not allowing a "tricking" of the code by checking/un-checking certain combinations of checkboxes.
Does anyone know a good logical starting point? I realize I have thrown a lot at you all but this place is my programming salvation so I wanted to start here first.
I have quite a task on my hands right now that has a tight deadline and I am working through the logic portion for the next day or so before going full-on high-speed development time.
So here is the back-story:
We have an ASP/vb.Net driven page that allows a table of dynamically built values and associated checkboxes to populate the table such as this:
User Input = OptionBox1 Then
Populate Date
User Input = OptionBox2 Then
Populate Different Data
The data appears as so:
tblData1:
CHECKBOX DATA_KEY DATA_VALUE
[ ] value_one Value One
[ ] value_two Value Two
[ x ] value_three Value Three
So all that being said, that works fine. What I am doing is implementing a control that feeds off another table as such:
tblData2:
DATA_KEY DATA_KEY_NOT_VALID
value_one value_two
value_two value_one
value_two value_three
value_three value_one
The meaning of this table is basically a Bridge Table which takes the data key the user chose and looks up the non-valid keys in tblData2. What I want to then do is on the fly (upon checking value_two for instance), disable the ability to check value_one or value_three. I know which key is being checked but I don't know of a way to dynamically drive the enabled/disabled behavior without hard-coding logic into VB.NET for the ASP page.
So the task is this - upon checking a dynamically built value (over 200 possible choices), I need the ability to disable certain check-boxes dynamically. The same goes for un-checking a specific value and re-enabling the new value. All the while, I must retain integrity of this logic by not allowing a "tricking" of the code by checking/un-checking certain combinations of checkboxes.
Does anyone know a good logical starting point? I realize I have thrown a lot at you all but this place is my programming salvation so I wanted to start here first.