Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UpdatePanel suppose to reload the whole page

Status
Not open for further replies.

mbde

Programmer
Mar 14, 2005
55
US
Right now I have a master page. In the master I have a script manager, a Update Panel, a Label and a timer.

Right now I am just putting the time in the label, if I get this to work I will want to do something more advance of getting a status from a database. But the concept is the same

I have tried putting the timer in the UpdatePanel with ChildernAsTriggers and outside the UpdatePanel with a TriggerCollection for AsyncPostback.

Both ways cause the Content portion of the page to reload time and time again. I was under the impression that only the functions in the UpdateTrigger collection get invoked. Is it normal for this to happen, am I setting up the Panel incorrectly?
Code:
 <asp:ScriptManager ID="smDynamicClock" runat="server"></asp:ScriptManager>
        <asp:Timer ID="Timer1" runat="server" Interval="5000" ontick="Timer1_Tick">
        </asp:Timer>

Code:
<asp:UpdatePanel runat="server" ID="upDynamicClock" ChildrenAsTriggers="False" 
                        RenderMode="Inline" UpdateMode="Conditional">
                        <ContentTemplate>
                        <asp:Label runat="server" ID="lblDynamicClock"></asp:Label>
                        </ContentTemplate>
                    
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                        </Triggers>
                    
                    </asp:UpdatePanel>

Thanks
 
This question looks like it refers to Microsoft's proprietary Ajax tool rather than true Asynchronous Javascript and XML.If that is the case you will be better posting in forum855.

If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top