Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maxlength Property
Message
 
À
24/08/2010 11:38:26
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01478153
Message ID:
01478212
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform