In this recipe, let's see how to work with the script
data type in AJAX. To demonstrate, we will load the jQuery form plugin on the page using an AJAX call. We will then add the reset functionality using this plugin to the Reset button on the form.
Download the jQuery form plugin from http://plugins.jquery.com/project/form and save it to the
js
folder in the project.Add a new web form
Recipe4.aspx
to the current project.Create a simple Change Password form with the following markup:
<form id="form1" runat="server"> <div align="center"> <fieldset style="width:400px;height:170px;"> <table cellpadding="3" cellspacing="3" border="0"> <tr><td colspan="2" class="header">CHANGE PASSWORD</td></tr> <tr><td> <asp:Label id="lblCurrentPwd" Text="Current Password: " runat="server"/></td> <td> <asp:TextBox ID="txtCurrentPwd" Width="200px" runat...