Hi folks
I'm working with an UpdatePanel that I'd like to refresh programmatically on the server side. The reason is I display some data that takes a pretty long time to load, so I need to display the page and some sort of progress meanwhile.
What I did is the following, on a page with one UpdatePanel and one ScriptManager:
protected void Page_Load(object sender, EventArgs e)
{
if(scriptManager.IsInAsyncPostBack)
testLabel.Text = "AfterUpdate";
else
jobsUpdatePanel.Update();
}
This does not what I'd like to do: I'd like the page to be displayed and immediately trigger an asynchronous update of the UpdatePanel in order to load the data - which is what I do instead of assigning another silly text to testLabel
.
This is the markup of the UpdatePanel (leaving the ContentTemplete away for the sake of readability):
<asp:UpdatePanel ID="jobsUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
There is no postback performed at all. Can anybody give me a hint what I'm doing wrong?
Matthias