How to call JS function With the help of ScriptManager.RegisterStartupScript method in code behind?

 Posted by vishalneeraj-24503 on 6/6/2014 | Category: ASP.NET Interview questions | Views: 331 | Points: 40
Answer:

RegisterStartupScript is a static method of ScriptManager class which manages AJAX script libraries and script files.

For Example:-
ScriptManager.RegisterStartupScript(this,this.GetType(), "any name", "alert('Hello');", true);

ScriptManager.RegisterStartupScript(this,this.GetType(), "any name", "any js function", true);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response