Sign in | Join
Last post 07-13-2009 2:20 AM by Vince Xu - MSFT. 2 replies.
Sort Posts: Oldest to newest Newest to oldest
Hello
I have a question. I want that when an user write in a textBox the text must be transformed with uppercase letter. Somebody can tell me how I can make this?
Hi,
Add this style in your text box
eg:
<asp:TextBox ID="TextBox1" runat="server" style="text-transform:uppercase"></asp:TextBox>
Thanks
asp:TextBox ID="TextBox1" runat="server" style="text-transform:uppercase"></asp:TextBox>
You can define client onkeypress event for TextBox. In this event, you can transform the content in textbox. You can also define onblur client event. It will be execute after textbox losts focus.