Click here to Skip to main content
15,896,207 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<form id="form1" runat="server">
    <div id="registration">
    <h1>Registration</h1>
        <table>

            <tr><td>StudentID</td><td>
                <asp:TextBox ID="txtstdid" runat="server" Width="200" Height="20"></asp:TextBox></td></tr>

            <tr><td>Name</td><td>
                <asp:TextBox ID="txtname" runat="server" Width="200" Height="20"></asp:TextBox></td></tr>

            <tr><td>RollNumber</td><td>
                <asp:TextBox ID="txtrnum" runat="server" Height="20" Width="200"></asp:TextBox></td></tr>
            <tr><td>Course</td>&nbsp<td><asp:DropDownList ID="drpcor" runat="server">
                <asp:ListItem Text="B.Tech"></asp:ListItem>
                <asp:ListItem Text="M.Tech"></asp:ListItem>
                <asp:ListItem Text="MCA"></asp:ListItem>
                                  </asp:DropDownList>
</td></tr>
            <tr><td>Section</td><td><asp:DropDownList ID="drpbrn" runat="server">
                 <asp:ListItem Text="Select"></asp:ListItem>
                <asp:ListItem Text="A"></asp:ListItem>
                <asp:ListItem Text="B"></asp:ListItem>
                <asp:ListItem Text="C"></asp:ListItem>
                                   </asp:DropDownList>
</td></tr>

            <tr><td>Email</td><td>
                <asp:TextBox ID="txtemail" runat="server" Width="200" Height="20"></asp:TextBox></td></tr>
            <tr><td>Address</td><td>
                <asp:TextBox ID="txtaddress" runat="server" TextMode="MultiLine" Height="20" Width="200"></asp:TextBox>
                </td></tr>
            <tr><td>Photo</td><td>
                <asp:FileUpload ID="FileUpload1" runat="server" /></td></tr>

            <tr><td>&nbsp</td><td><asp:Button ID="btnsubmit" runat="server" Text="Submit"/></td></tr>

        </table>

    </div>
    </form>




thank you
Posted
Comments
AnvilRanger 16-Aug-15 10:44am    
Your questions makes no sense at all. jQuery IS a client side JavaScript framework that is referenced in your HTML. It would be better if you explain what you are trying to accomplish.

1 solution

You can code your own validation logic by jQuery. No need of any external plugin.

You have the id of textbox. Use that to select the control and then validate inside the submit button click event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900