.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

call javascript function from the code behind page

Posted By:Hiren Soni       Posted Date: August 11, 2010    Points: 10    Category:    URL: http://www.dotnetspark.com  

here i will show how you can call javascript code from the code-behind page:
 

string jv = "";

        Page.RegisterClientScriptBlock("JS", jv);



in string jav you have to write function_call statement. then using 


Page.RegisterClientScripBlock will call that javascript string at the client side.


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend