Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maxlength Property
Message
 
To
24/08/2010 11:38:26
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
Miscellaneous
Thread ID:
01478153
Message ID:
01478212
Views:
30
>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???
>
>
>
>
>.
I ran into something similar when my stored procedure was trimming a value selected for a column in an insert. Apparently, for that particular row, the length of the field in SQL was being reset. Once I changed my insert code, the problem went away.
Linda Harmes
HiBit Technologies, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform