views:

94

answers:

4

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#

+2  A: 

Just set the MaxLength property of the textbox.

ho1
thx no where I stupid I had completely forgotten
saadan
A: 

TextBox.MaxLength maybe?

Justin Niessner
+1  A: 

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

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

anishmarokey
A: 

Alternatively you could add a jQuery plugin

GedByrne
No need to add client-side plugins for standard properties
riffnl