开发者

check max characters in textbox

开发者 https://www.devze.com 2022-12-31 09:32 出处:网络
I have textboxes where i only want signed a max number of characters in. an then I\'ll hear how i could check it easily in开发者_C百科 c#Just set the MaxLength property of the textbox.You can set the

I have textboxes where i only want signed a max number of characters in. an then I'll hear how i could check it easily in开发者_C百科 c#


Just set the MaxLength property of the textbox.


You can set the MaxLength Property of the textbox as you want.

E.g: if you want MaxLength as 10. give MaxLength - 10


TextBox.MaxLength maybe?


Alternatively you could add a jQuery plugin

0

精彩评论

暂无评论...
验证码 换一张
取 消