只能输入数字的文本框代码 <asp:TextBox ID="TbGageStart" runat="server" Width="95px" onkeyup="this.value=this.value.replace(/[^\d]*/img,'')" >0</asp:TextBox>