2
Answers

How to use ScriptManager.RegisterStartupScript in C#

Photo of Santhonabin

Santhonabin

14y
52.7k
1
Hi
  Pls tell me Step by step that how to use ScriptManager.RegisterStartupScript.

and also pls check following statement usage is correct or not. if not correct means pls tell the correct one.


protected
void Button1_Click(object sender, EventArgs e)


{

ScriptManager1.RegisterStartupScript(Page,Page.GetType(),

}

"alert", "<script language='javascript' type='text/javascript'>alert('page saved successfully');window.location='Exporttoword.aspx';</script>", false);

 

Answers (2)