Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UpperCase display in a Textbox

I need to DISPLAY the text in an asp textbox as upper case, regardless of whether the users caps lock is on or not – is there some property or method I can use? I am converting the text using the .ToUpper method on submitting to the database anyway, but I have been asked to also DISPLAY it in upper case before that when first being typed.

Any help would be much appreciated.

Abhi.

like image 723
Abhishek Jain Avatar asked Dec 21 '22 22:12

Abhishek Jain


1 Answers

use CSS for that

  #idOfyourTextbox{
      text-transform: uppercase;
  }

uppercase that is ;)

like image 169
Caspar Kleijne Avatar answered Dec 24 '22 11:12

Caspar Kleijne