I have a repeater control within an UpdatePanel and for the most part it is working as expected; however everytime thetimer control fires (to cause an asynch update) the rest of my web pageis not accessible until the callback has completed.
Icannot explain why this is happening. My dropdownlists are outside the UpdatePanel and my html links are inside the UpdatePane, yet they areall completely inaccessible for about 2 or 3 seconds while the callbackoccurs.
Has anyone seen this ? Shouldn't I be able to access my web page's control while a callback occurs ?
I can post code if someone can help.
Thank you,
Bob
It sounds like that entire page is posting back...
I would check to make sure that your UpdatePanel is set for Conditional update (although it probably is since you have a trigger connected to it).
I would put a label or something outside the updatepanel and fill it with current datetime to check if the entire page is posting back!
I just set it to Conditional but it's still doing the samething. Here's an outline of my code. This aspx page is connected to amaster page:
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Timer ID="TimerOrders" runat="server" Interval="15000" />
<asp:UpdatePanel ID="UpdatePanelOrders" UpdateMode="Conditional" runat="server" >
<ContentTemplate>
<asp:Repeater ID="Repeater1"runat="server" OnDataBinding="Repeater1_DataBinding"OnItemDataBound="Repeater1_ItemDataBound"OnPreRender="Repeater1_PreRender" >
<HeaderTemplate>
...
</HeaderTemplate>
<ItemTemplate>
...
</ItemTemplate>
</asp:Repeater>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTriggerControlID="DrpStatusList" EventName="SelectedIndexChanged" />
<asp:AsyncPostBackTriggerControlID="drpFilterList" EventName="SelectedIndexChanged"/>
<asp:AsyncPostBackTrigger ControlID="TimerOrders" EventName="" />
</Triggers
</asp:UpdatePanel>
It looks fine. And I tried a similar deal and my outer controls work fine.
The only thing I can think of is that there is something with the server this is running on. It is getting hung up for some reason.
I will investigate further.
I'm running it from my local drive first, then I move the codeup to the Win2003 server. It works the same strange way on both sides.
Maybe it's masterpage related. Do you want to post your sample ?
Thanks,
Bob
Hi,Bob
Here is the sample:Using the UpdatePanel Control with Master Pages
It is hard to say where the problem lie on,Please double-check your code and find out what's the differences between your code and the sample's.
Thanks
No comments:
Post a Comment