Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
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
How to dynamically register and invoke javascript from C#?
Vithal Wadje
11y
1.5k
0
Reply
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
11y
0
What is a .suo file?
What is new in the ASP.NET 4.0’s web.config file?
Message