Home > Code > HTML > Uppercase letters in textbox

Uppercase letters in textbox

by Thamil   on May 28, 2013   Category: HTML   |  Views: 1066    |  Points: 25   |  Gold 


sometime we may need to have upper cases in the textbox, below is the sample to convert all letters to upper case while typing in textbox


method-1:

<asp:TextBox ID="TextBox1" Style="text-transform: uppercase" runat="server" Text="test" ></asp:TextBox>

method-2:

<style type="text/css">
.upprcse
{
text-transform: uppercase;
}
</style>

<asp:TextBox ID="TextBox1" CssClass="upprcse" runat="server" Text="test" ></asp:TextBox>



Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts