Subhash Sharma

Subhash Sharma
Subhash Sharma

This is Subhash Sharma(Software Engineer) Blog

Welcome to this blog and find every solution.............

Search This Blog

Software Engineer(Subhash Sharma)

Software Engineer(Subhash Sharma)
Software Engineer

Monday, October 18, 2010

Check value Numeric is not(validation control server side)

asp:TextBox ID="TextBox1" runat="server" CausesValidation="True">/asp:TextBox>
asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server"
ErrorMessage="Pless Enter textbox1 value" ControlToValidate="TextBox1">*/asp:RequiredFieldValidator>
asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="textbox1"
ErrorMessage="Enter numeric value" Operator="DataTypeCheck" SetFocusOnError="True"
Type="Integer">/asp:CompareValidator>

asp:ValidationSummary ID="ValidationSummary1" runat="server" />

No comments:

Post a Comment