Server validation

G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top