Answer: Refer below code:-
For Example:-
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Alert", "alert('Hello');", true);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "any name", "any js function", true);
Asked In: Many Interviews |
Alert Moderator