CUSTOMVALIDATOR IN ASP.NET

Monaj Singh

Total Post:41

Points:287
Posted by  Monaj Singh
 1449  View(s)
Ratings:
Rate this:
Hi Guys
Please help
How to use CustomValidator in ASP.NET?
 with sample code.
Thanks

  1. Amit Singh

    Post:103

    Points:721
    Re: CustomValidator in ASP.NET

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!