Required Filed Validator and Compare Validator in asp pages

Karthikanbarasan
Posted by Karthikanbarasan under ASP.NET category on | Points: 40 | Views : 2996
<asp:TextBox ID="txttextbox1" runat="Server"></asp:TextBox>
<asp:RequiredFieldValidator ID="req" runat="Server" Text="*" ControlToValidate="txttextbox1" Display="dynamic">
</asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompVal1" runat="Server" Text="Only integer" ControlToValidate="txttextbox1" Operator="DataTypeCheck" Type="Integer">
</asp:CompareValidator>

Comments or Responses

Login to post response