Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TextBox formatting
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00673475
Message ID:
00673518
Views:
17
Add it right in the control (html view)
<asp:TextBox id="txtText" runat="server" onKeyUp="ToUpper(this)" />
The designer will underline the method name above in red because it does not understand it. However it will not produce any errors and will run just fine.

Kamal

>Hi Kamal,
>Thanks for the reply. I'm very new to this, and have limited understanding as of yet. Where does this stuff belong (in the aspx.cs?) and where does the onKeyUp="ToUpper(this)" go? Thanks a lot,
>jfh
>
>
><script language="JavaScript">
><!--
// How to Call: onKeyUp="ToUpper(this)"
function ToUpper(oObject) {
    oObject.value = oObject.value.toUpperCase();
}
//-->
></script>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform