Home > DeveloperSection > Forums > CustomValidator in ASP.NET
Monaj Singh
Monaj Singh

Total Post:41

Points:287
Posted on    October-18-2010 8:23 AM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 1191  View(s)
Rate this:
Hi Guys
Please help
How to use CustomValidator in ASP.NET?
 with sample code.
Thanks



Amit Singh

Total Post:103

Points:721
Posted on    October-18-2010 10:20 AM

CustomValidator is a server side validator
we create function to particular control. we give the particular validator condition
for example
<script>
function check()
{
//give the condition
}
</script>

<asp:TextBox id="txtBox"></asp:TextBox>
<asp:CustomValdator TargetControlID="txtBox" onClick="check();"></asp:CustomValidator>

Don't want to miss updates? Please click the below button!

Follow MindStick