ASP.NET 常用验证
1.必填验证
2.只能输入正整数的验证
1<asp:RequiredFieldValidator ID="RFVHMNum" runat="server" ControlToValidate="txtHMNum" Display="Dynamic" ErrorMessage="Please fill [HMNum]!"></asp:RequiredFieldValidator>
2.只能输入正整数的验证
<asp:RegularExpressionValidator ID="REVMasterPack" runat="server" ControlToValidate="txtMasterPack" Display="Dynamic" ErrorMessage="Please fill Integer!" ValidationExpression="^[1-9]{1}[\d]*"></asp:RegularExpressionValidator></td>