A
astro
I want to have 2 mutually exclusive checkboxes on a webform. I do not want
to post back to server for this to happen.
Last week I built this using javascript with each ctrl calling a javascript
function on the page that automatically unchecked it's mate. I ran into
problems with this approach when I needed to pass the list of checked
checkboxes to the next webform for processing via some vb.net code.
Is there a way to load an arraylist or hashtable referencing these html
controls? Obviously this would be done on the server. ... I just don't know
how to reference these checkboxes from vb.net code on the server (or
otherwise) since they are html controls...
Is dumping this information into the url via javascript the only way?
If these checkboxes where webctrl checkboxes I could write code to load them
into a hashtable and pass them back via a session variable (demostrated in
Mark Ridgeway's book - VB.net developer's handbook)....but based on my small
understanding of things this would entail having each check cause a postback
to the server for unchecking it's mate (which seems like a really big waste
of time)....
Feedback appreciated...
to post back to server for this to happen.
Last week I built this using javascript with each ctrl calling a javascript
function on the page that automatically unchecked it's mate. I ran into
problems with this approach when I needed to pass the list of checked
checkboxes to the next webform for processing via some vb.net code.
Is there a way to load an arraylist or hashtable referencing these html
controls? Obviously this would be done on the server. ... I just don't know
how to reference these checkboxes from vb.net code on the server (or
otherwise) since they are html controls...
Is dumping this information into the url via javascript the only way?
If these checkboxes where webctrl checkboxes I could write code to load them
into a hashtable and pass them back via a session variable (demostrated in
Mark Ridgeway's book - VB.net developer's handbook)....but based on my small
understanding of things this would entail having each check cause a postback
to the server for unchecking it's mate (which seems like a really big waste
of time)....
Feedback appreciated...