Hi,
I have a asp.net page that has a grid on it. This grid is refreshed peridodically via a RadXMLHttpPanel. The problem is that I need this auto refresh to stop when session state ends and redirect to a login page...however the auto refresh mechanism keeps the session state alive. I thought the Ajax controls bypassed part of page life cycle and session state would expire...but it appears to be doing a full postback? How can I get a partial page update without keeping session state alive?...and ultimately once session state is dead then to redirect to another page...Below is my script code that starts the refresh based on a js timer...
I have a asp.net page that has a grid on it. This grid is refreshed peridodically via a RadXMLHttpPanel. The problem is that I need this auto refresh to stop when session state ends and redirect to a login page...however the auto refresh mechanism keeps the session state alive. I thought the Ajax controls bypassed part of page life cycle and session state would expire...but it appears to be doing a full postback? How can I get a partial page update without keeping session state alive?...and ultimately once session state is dead then to redirect to another page...Below is my script code that starts the refresh based on a js timer...
//js scriptfunction startWorklistRefresh() { if (wlIntervalId == 0) { wlIntervalId = setInterval("reloadWorklist();", wlCtrlAutoRefreshRate); } } function reloadWorklist() { $find("<%= XmlGridPanel.ClientID %>").set_value("Reload"); } function GridXmlPanel_OnResponseEnded(sender, args) { startWorklistRefresh(); }//aspnet markup... <telerik:RadXmlHttpPanel ID="XmlGridPanel" runat="server" OnServiceRequest="GridXmlPanel_OnServiceRequest" OnClientResponseEnded="GridXmlPanel_OnResponseEnded" EnableClientScriptEvaluation="true"> <telerik:RadGrid id="GridWorklist" runat="server" SkinID="main" GridLines="None" style="outline: none;" OnItemCreated="GridWorklist_ItemCreated" OnItemDataBound="GridWorklistt_ItemDataBound">...And the xml panel event on the server side... protected void GridXmlPanel_OnServiceRequest(object sender, RadXmlHttpPanelEventArgs e) { GridWorklist.DataSource = RadTechData.GetWorklist(AppUtils.CurrentFacilityID); GridWorklist.DataBind(); }