Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maxlength property prevents input
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01260900
Message ID:
01260915
Vues:
8
If your field is defined with the CHAR datatype, it is completly filled with spaces and you need to delete them before entering new characters.

You should use VARCHAR fields or TRIM them before binding them to the control.


>Hi. I have a TextBox control on a Wb Form , and have set a it's MaxLength property to the no. of characters in th database.
>When I try to enter data into the text box, the cursor does not move. I have to keep my finger down on the delete key for a few seconds...its as if the control is padded out with spaces, perhaps up to the maxlength, and until I delete these, it does not let me enter any data.
>
>If I take off the MaLength propery (i.i. set i to zero) I can enter data fine.
>
>Anybody got any ideas whats going on here ?
>regards,
>Gerard
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform