josephjohn100
Member
- Joined
- Nov 8, 2012
- Messages
- 8
- Programming Experience
- 3-5
I'm using the following code to check whether the text box accepts only number. but this is not firing ?
<td class="Content" style="background-color: #e4ecee"> Claim #:
<asp:TextBox ID="txtClaimNumber" runat="server" ></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" ControlToValidate="txtClaimNumber" CssClass="error-text" Display="None" EnableClientScript="false" ErrorMessage="Claim # should contain only numbers" Operator="DataTypeCheck" runat="server" Type="Integer">*</asp:CompareValidator>
</td>