When AJAX ScriptManager is on MasterPage

..and we need to access it:

ScriptManager ScriptManager1 = (ScriptManager)Master.FindControl("ScriptManager1");
ScriptManager1.AsyncPostBackTimeout = 300;

..or a much beter way:

ScriptManager ScriptManager1 = ScriptManager.GetCurrent(this);

suggested by rajbk

1 Comment

  • Consider using ScriptManager.GetCurrent(Page)

    http://msdn.microsoft.com/en-us/library/system.web.ui.scriptmanager.getcurrent.aspx

Comments have been disabled for this content.