selected button

  • Thread starter Thread starter Vinnie
  • Start date Start date
V

Vinnie

i have a radiobutton list, and one label with a textbox. Beside the
Texbox i have inserted a fieldvalidator: now, i was wondering if the
code that follows is correct, and if it does, where i should put it.
What i want to do is this: if is selected YES on the RadioButton,
than Fieldvalidator should be Enabled (it is disabled by default).

so here is the code that i have written:

if (RadioButtonListContact.Cheked == "YES")
{
FieldValidatorName.Enabled = true;
}

The fact now is that i don't now where to insert this code, 'cause i
wish the system to activate the FieldValidatorName immediately after
the user has selected the YES option in the RadioButton list.

Thanks
 
Back
Top