0

I have this update pannel

   <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>  

   <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
     <ContentTemplate>


        <asp:Timer ID="Timer1" runat="server" OnTick="Timer1_Tick">
            </asp:Timer>

     </ContentTemplate>
   <Triggers>
            <asp:AsyncPostBackTrigger  ControlID="Timer1" EventName="Tick" />
    </Triggers>
    </asp:UpdatePanel>

This update panel updates each 2 minutes.

I have a javascript functions that fills the data into a canvas, I wan this javascript function to be fired each time this update panel updates.

how to do that please?

where should I put the script? maybe inside the update panel

thanks in advance

Marco Dinatsoli
  • 10,322
  • 37
  • 139
  • 253

1 Answers1

1

I believe you will find the solution in this thread: How to have a javascript callback executed after an update panel postback?

put it inside function pageLoad(sender, args) { ... }

Community
  • 1
  • 1
GôTô
  • 7,974
  • 3
  • 32
  • 43