<input id="txtNum" runat="server" style=" width:50px" οnkeyup="if(isNaN(value))execCommand('undo');limitLength();" onafterpaste="if(isNaN(value))execCommand('undo');limitLength();" />
<asp:TextBox ID="txtCompany" runat="server" Width="50px" οnkeyup="limitSetLengthFour();" onafterpaste="limitSetLengthFour();"></asp:TextBox>
转载于:https://www.cnblogs.com/TNSSTAR/archive/2012/08/17/2644427.html