<table>
<tr>
<td class="style1">
<div align="left">Title<sup>*</sup></div>
</td>
<td>
<div align="left">
<asp:TextBox ID="TextBox1" runat="server" required="required" ></asp:TextBox>
</div>
</td>
</tr>
<tr>
<td class="style1">
<div align="left"> Price<sup>*</sup> </div>
</td>
<td>
<div align="left"> <asp:TextBox ID="TextBox2" runat="server" required="required" pattern="[0-9]+$" title="only numeric constants"></asp:TextBox></div>
</td>
</tr>
<tr>
<button runat="server"/>
</tr>
---------------------------------------------------------------------------------
thats it..................
we need use required="required' attribte of html5
and if we need to validate for specific constraint use pattern attribute just like regular expression validator
just like above second condition
<table>
No comments:
Post a Comment