Dec 27, 2012, 11:52 AM
[CLOSED] Refreshing A Particular Div With TaskManager - It Currently loads the whole page.
Hello,
My issue is that when i add a TaskManager in my usercontrol and start the task at the runtime (during the page load), the whole page containing the user control is post-back ! I want just a particular 'div' to be refreshed the AJAX way ! I do have an event '' defined at within the 'DirectEvents' which i wish to trigger when the specified interval for the TaskManager is lapsed. What might be goin' wrong here ?
Following is my ascx page with the TaskManager:
The task is started during the control load in ascx.cs:
Please help.
Thanks,
Whishworks
My issue is that when i add a TaskManager in my usercontrol and start the task at the runtime (during the page load), the whole page containing the user control is post-back ! I want just a particular 'div' to be refreshed the AJAX way ! I do have an event '' defined at within the 'DirectEvents' which i wish to trigger when the specified interval for the TaskManager is lapsed. What might be goin' wrong here ?
Following is my ascx page with the TaskManager:
<ext:TaskManager ID="TManager" runat="server">
<Tasks>
<ext:Task TaskID="servertime" >
<DirectEvents>
<Update OnEvent="TManager_Tick">
</Update>
</DirectEvents>
</ext:Task>
</Tasks>
</ext:TaskManager>
<div id="mainDiv" runat="server" style="background-color:White; width:100%;" >
<ext:Label runat="server" ID="lblDisplayMe" Visible="true" ></ext:Label>
</div>
The task is started during the control load in ascx.cs:
TManager.StartTask(0);
TManager.Tasks[0].Interval = 5000;
TManager.Tasks[0].AutoRun = true;
Whenever the 'TManager_Tick' event is fired, I wish to load the 'mainDiv' only. Currently it refreshes the whole page. Please help.
Thanks,
Whishworks
Last edited by Daniil; Jan 07, 2013 at 1:41 PM.
Reason: Please use [CODE] tags, [CLOSED]