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