uppercase

N

Nathan Sokalski

Yes, you need to use JavaScript. Use a line similar to the following:

TextBox2.Attributes.Add("onKeyPress", "return (event.keyCode>=65 &&
event.keyCode<=90);")

This code returns true if the character entered is a capital letter, and
false otherwise. If the returned value is false, the character is not
displayed. (NOTE: you may want to test this on all browsers, because I am
not sure if it lets the user use the backspace on all browsers, but I know
it lets you on IE6, I haven't had time to look into it yet)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top