Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing some Javascript code
Message
From
05/11/2004 12:47:15
 
 
To
05/11/2004 12:01:58
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00958561
Message ID:
00958580
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform