>How can I force the users to enter characters in uppercase? I want to
>do this in a TextBox control of an aspx page. Then I want the same to
be moved to inside a GridView control.
Depending on what is the content of that box, it might be very bad for
international users.
And in fact I would hate such a "feature" as US user.
It forces me to press caps-lock and type in ugly caps text that "screams"
And this is just to save some programmer the trouble of calling one single
API to convert a string to uppercase.
Add a RegularExpressionValidator to the form and set it's expression to:
^[A-Z]+$
If for some reason the regex validator defaults to caseinsensitive (I've
never tried if it is before now that I think of it) you can use:
^(?-i:[A-Z])$
Again, bad internationalization. What about accented characters?
Russian, Greek, etc.?
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email