Disabling texbox based on the selection of 4 radio buttons
I am trying to disable a RFV for a textbox if 4 different radio buttons are selected as "NO".
I had easily done this with .NET 2.0 using client-side scripting, however, that did not work on .NET 1.1. Now, I am trying to do something like:
if (one.SelectedItem.Value == "Yes" || two.SelectedItem.Value == "Yes" || three.SelectedItem.Value == "Yes" || four.SelectedItem.Value == "Yes" )
{
tboxValidator.Enabled = true;
}
else
{
tboxValidator.Enabled = false;
}
I am having a problem knowing where and how to fire the code above.
Any help is truly appreciated.
Thank you.
Last edited by nepal; March 23rd, 2009 at 03:31 PM..
|