TextBox and Uppercase

H

Hrsoft

I'm a newbie with asp.net
I need to transform a user textbox to uppercase, when typing.
Is this possible?
I read about Ajax Maskedit, but it is only to certain formats, like
dates, etc

Thanks in advance.
Hércules Russano
HRsoft Informática
Rio de Janeiro - Brasil
http://www.hrsoft.com.br
 
B

bruce barker

just a style command:

<asp:textbox runat="server" style="text-transform:uppercase" />

-- bruce (sqlwork.com)
 
H

Hans Kesting

bruce barker explained on 17-6-2008 :
just a style command:

<asp:textbox runat="server" style="text-transform:uppercase" />

-- bruce (sqlwork.com)

This will not *convert* the string to uppercase, it will just *display*
it as uppercase! OK, that's easily fixed with a ".ToUpper()" in
codebehind, when you read the contents of the textbox.

Hans Kesting
 
B

bruce barker

to have javascript also convert:

<asp:textbox runat="server"
style="text-transform:uppercase"
onblur="this.value=this.value.toUpperCase();"
/>


-- bruce (sqlwork.com)
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top