Forums - C# Corner

Forum guidelines
Santhonabin

Santhonabin

  • 730
  • 33
  • 131.7k

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", "", false);


Answers (2)

Startup Conference 2016

SPONSORED BY

Spire.Doc - Free .NET Word API
Use Spire.Doc to create, read, write, print, and convert word documents to OpenXML, RTF, TXT, XPS, EPUB, EMF, HTML, Image and PDF.