how do i stop a user from entering more than a number of char in a textbox?
ie if number is a variable =5
means that user can only keying 5 chars at most and being 'block' after that in the textbox...but with the focus still set on the textbox.:)
Printable View
how do i stop a user from entering more than a number of char in a textbox?
ie if number is a variable =5
means that user can only keying 5 chars at most and being 'block' after that in the textbox...but with the focus still set on the textbox.:)
Hi.
The textbox has MaxLength property you can set.
Then it will automatically do the rest for you.