当输入数据判断数据是否符合要求,
<input id="txtNum" runat="server" style=" width:50px" onkeyup="if(isNaN(value))execCommand('undo');limitLength();" onafterpaste="if(isNaN(value))execCommand('undo');limitLength();" />
<asp:TextBox ID="txtCompany" runat="server" Width="50px" onkeyup="limitSetLengthFour();" onafterpaste="limitSetLengthFour();"></asp:TextBox>