<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.
><script language="JavaScript"> ><!-- // How to Call: onKeyUp="ToUpper(this)" function ToUpper(oObject) { oObject.value = oObject.value.toUpperCase(); } //--> ></script> >