Loading ...

Asp.net Custom validation

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  web forms / data controls   » Asp.net Custom validation

Asp.net Custom validation

Posts under the topic: Asp.net Custom validation

Posted: 10/11/2011

Lurker 5  points  Lurker
  • Joined on: 10/11/2011
  • Posts: 1

How to i validate an input textbox to allow only Id numbers with the following  format. 63-931365N26. Please help urgently


Posted: 10/11/2011

Guru 16813  points  Guru
  • Joined on: 4/19/2009
  • Posts: 490

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Title</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>
    <script src="http://cloud.github.com/downloads/digitalBush/jquery.maskedinput/jquery.maskedinput-1.3.min.js" type="text/javascript"></script>

    

    <script type="text/javascript" >
        $(function ($) {
            $("#<%= TextBox1.ClientID %>").mask("99-999999N99");
            
        });   
    </script>
</head>
<body>
    <form id="HtmlForm" runat="server">
    <div>
        <asp:TextBox runat="server" ID="TextBox1"></asp:TextBox>
    </div>
    </form>
</body>
</html>


Page 1 of 1 (2 items)