Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing some Javascript code
Message
De
05/11/2004 12:47:15
 
 
À
05/11/2004 12:01:58
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00958561
Message ID:
00958580
Vues:
20
Ok, I have found various ways to do it.

Using the Page_Load() could be such as:
ShowText.Attributes.Add("onclick", "javascript:ShowAlert(window.document.Form1.FirstName.value)")
Or, generating the entire HTML on the Click() event of the control such as:
Response.Write("<SCRIPT>alert(""This is my text."")</SCRIPT>")
But, I am mostly interested in a more direct way to achieve that directly from the Click() event such as:
MyObjectForJavascript.Something="ShowAlert(""This is my text."")"
Is that possible?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform