locked
ASP.NET Timer with UpdatePanel Not Accessing Database RRS feed

  • Question

  • User460266172 posted

    I have a problem acessing the database on asp.net timer's tick event. It always crashes. Any help?

    Monday, October 28, 2013 3:11 AM

Answers

  • User467960235 posted
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <columns>
    // Code
    </columns>
     <Triggers> 
    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
    </Triggers>
    <ContentTemplate>
    <!-- your content here, no timer -->
    </ContentTemplate>
    </asp:UpdatePanel>

    <div>Add Triggers inside updatepanel</div>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 28, 2013 3:23 AM
  • User-1635195291 posted

    Hi Ibangajnr,

    Complete Example:

    Hope this helps.

    Thanks,

    Jatin

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 29, 2013 10:45 PM

All replies

  • User467960235 posted
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <columns>
    // Code
    </columns>
     <Triggers> 
    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
    </Triggers>
    <ContentTemplate>
    <!-- your content here, no timer -->
    </ContentTemplate>
    </asp:UpdatePanel>

    <div>Add Triggers inside updatepanel</div>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 28, 2013 3:23 AM
  • User-1635195291 posted

    Hi Ibangajnr,

    Complete Example:

    Hope this helps.

    Thanks,

    Jatin

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, October 29, 2013 10:45 PM