VS 2003 / .NET 1.1 / C#
I’m playing with some validation controls. I have noticed that I can
validate a dropdownlist with a custom validator using the following format:
<asp:customvalidator id="valPayment" Runat="server" Display="Dynamic"
ControlToValidate="XXX" EnableClientScript="False"><img
src="Error.jpg"></asp:customvalidator>
And than doing some custom code in the ‘valPayment_ServerValidate’ function.
Why can’t I use the same asp:customvalidator for a radiobuttonlist? I tried
it and as long as there is nothing selected, the code in the code behind file
is not executing. But I can’t seem to attach a asp:requiredfieldvalidator to
a radiobuttonlist. I get an error message that the radiobuttonlist can’t be
found. Any explanation for that?