Santhonabin

Santhonabin

  • NA
  • 51
  • 212.8k

How to use ScriptManager.RegisterStartupScript in C#

Feb 22 2011 1:05 AM
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)