Friday, September 17, 2010

ScriptManager.RegisterStartupScript in User Control Not working

Remove Update Panel In User Control or page.
Then
ScriptManager.RegisterStartupScript work Properly

2 comments:

  1. Try this:

    ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "Test", "alert('hi');", true);

    ReplyDelete