O'Reilly logo

ASP.NET jQuery Cookbook by Sonal Aneel Allana

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Validation of a sample user login form

Let's start with validation of a basic user login form using the validation plugin. The idea is to familiarize ourselves with the basics of using this plugin with ASP.NET controls.

Getting ready

  1. Add a new web form Recipe1.aspx to the current project.
  2. Include the jQuery library and the validation plugin on the form.
  3. Create a simple login form using ASP.NET controls as shown:
    <table border="0" cellpadding="3" cellspacing="3"> <tr><td colspan="2" class="header">LOGIN USER</td></tr> <tr> <td align="right"> <asp:Label ID="lblUserName" runat="server" Text="UserName: "></asp:Label> </td> <td align="left"> <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox> </td> </tr> <tr> <td align="right"> <asp:Label ID="lblPassword" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required