I’m attempting to use an UpdatePanel, but can’t get partial-page updates to work.When I look at the ScriptManager’s IsInAsyncPostBack property, it’s always false.Here’s a page that reproduces the issue. It has a ScriptManager, an UpdatePanel, a LinkButton within the update panel, and a Button wired up to the UpdatePanel via the Triggers …
via Asp.Net Developed Tutorials » Search Results » ajax:
UpdatePanel doesn’t do partial-page update, and IsInAsyncPos
I’m attempting to use an UpdatePanel, but can’t get partial-page updates to work.
When I look at the ScriptManager’s IsInAsyncPostBack property, it’s always false.
Here’s a page that reproduces the issue. It has a ScriptManager, an UpdatePanel, a LinkButton within the update panel, and a Button wired up to the UpdatePanel via the Triggers collection.
<%@ Page Language="C#" %>
If I run this code and click on either of the buttons, I see “Panel 1:2/8/2010 3:38:41 PM – Postback!”
I expected that clicking either button would cause a partial-page update for UpdatePanel1, that IsInAsyncPostBack would be true, and that ” – Async!” would be appended to Label1.
Any idea why IsInAsyncPostBack is always false?
……………………………….
The web.config file had
Changing the mode to Transitional resolved this issue.
http://weblogs.asp.net/scottgu/archive/2006/12/10/gotcha-don-t-use-xhtmlconformance-mode-legacy-with-asp-net-ajax.aspx
For more info: UpdatePanel doesn’t do partial-page update, and IsInAsyncPos
Asp.Net Developed Tutorials » Search Results » ajax