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

Click here to load this message in the networking platform