To disable all the UpdatePanels, you need to set the EnablePartialRendering property of the ScriptManager to false. You can get a reference to the current ScriptManager by using the GetCurrent() method passing in a reference to the current page.
protected void Page_Init(object sender, EventArgs e) {There is one gotcha: you need to set this property on the Page_Init event, otherwise an InvalidOperationException gets thrown.
ScriptManager.GetCurrent(this.Page).EnablePartialRendering = false;
}
Thanks!
ReplyDelete