Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Premium
Feed
Dashboard
Wallet
Achievements
Growth
Network
SharpGPT
Rewards
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
Reply
How to dynamically register and invoke javascript from C#?
Vithal Wadje
Oct 17, 2012
1.4k
0
Submit
. Use the method ClientScript.RegisterClientScriptBlock. Note that there was an older method too called as
Page.RegisterClientScriptBlock, but now this is deprecated.
Example (C#):
ClientScript.RegisterClientScriptBlock(typeof(Page), "theScript", "alert('Cracking interviews is now a cakewalk')", true);
Vithal Wadje
October 17, 2012
0
What is a .suo file?
What is new in the ASP.NET 4.0’s web.config file?