TextBox and Uppercase

  • Thread starter Thread starter Hrsoft
  • Start date Start date
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
 
just a style command:

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

-- bruce (sqlwork.com)
 
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
 
to have javascript also convert:

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


-- bruce (sqlwork.com)
 
Back
Top