简体   繁体   中英

asp.net - maxlength not working

I have a textbox as an input - markup below - this is a aspx page - see the markup below:

<input id="Number" runat="server" type="text" maxlength="6" /> 

However on screen - after I type in 6 digits or 6 letters it is allowing me to continiue typing?

Any ideas why?

尝试这个:

<asp:TextBox id="Number" runat="server" type="text" maxlength="6"></asp:TextBox>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM