I have some textboxes on a form that the user must enter data into. I have a maxlength on all of them, and I have set confirm on so the user must tab out of the textbox. This will however just place the cursor of the textbox to the last character and if the user continues to type then that last character is continuely overwritten. My question is how do I stop anymore characters being entered when the user hits the maxlength.
Example:
The maxlength of textbox txtLastName is 5
The user enters "Smith"
This would be fine, however if the user tried to enter "Smiths" the textbox looks like this "Smits" because it overwrites the last character. How can I stop this with out creating alot of extra code.
Dave Long
Example:
The maxlength of textbox txtLastName is 5
The user enters "Smith"
This would be fine, however if the user tried to enter "Smiths" the textbox looks like this "Smits" because it overwrites the last character. How can I stop this with out creating alot of extra code.
Dave Long