
 Rank: Guest Groups: Guest
Joined: 9/17/2007 Posts: 11,670 Points: -1,200
|
Date parsed: 07/10/2007 10:56:33 Date: Sun, 07 Oct 2007 17:56:33 -0700
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
|