title: How can I recall a javascript function after updatepanel update
body: <pre><code>&lt;asp:UpdatePanel ID="UpdatePanel2" runat="server"
      OnLoad="UpdatePanel2_Load" UpdateMode="Conditional"&gt;
      &lt;ContentTemplate&gt;
          &lt;script type="text/javascript"&gt;
              myFunction();
          &lt;/script&gt;
          &lt;asp:Label ID="Label1" runat="server" Text="1" Width="18px"&gt;&lt;/asp:Label&gt;
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>C#:</p>
  
  <pre><code>if(condition)
  {
        UpdatePanel2.Update();
  }
  protected void UpdatePanel2_Load(object sender, EventArgs e)
  {
          Label1.Text += 1;
  }
  </code></pre>
  
  <p>the Label1's value is changing but it doesn't call myFunction(). I want to call it one more time after the some condition but not using setTimeout to auto call, some ideas? </p>