Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maxlength Property
Message
From
24/08/2010 11:38:26
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Maxlength Property
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01478153
Message ID:
01478153
Views:
95
When I set the maxlength property of a textbox control to 10, it lets me type 4 characters.
When I set it to 30, it lets me type 21 characters.
I have initialized the textbox text to 20 spaces.
Que pasa?

Update:

Actually, it's more complicated.

The fewer the number of characters last saved, the less I can type when I edit.
So of I save "123" I can type "12345689" when I edit it.
Next time, I can type a lot more after I save the larger string
If I delete characters to the right before saving, next time I can type less.
There seems to be some interplay between the size of the string and the maxlength property???




.
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Next
Reply
Map
View

Click here to load this message in the networking platform