Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TextBox formatting
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00673475
Message ID:
00673518
Vues:
16
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>
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform