Force an UpdatePanel Update from JavaScript

The ASP.NET AJAX UpdatePanel gets updated in one of 3 ways.

1.) An implicit control event triggers an update (that is a control inside the UpdatePanel is getting updated, etc.)

2.) The UpdatePanel has a <Triggers> Collection, and one of the defined triggers gets fired.

3.) The UpdatePanel’s Update metod is explicitly called in the course of some server side logic.

BUT…….  What if I want to explicity trigger an update to the UpdatePanel from my client side JavaScript code ???

Ceck out his link on CodeProject for a solution.

Comments (1)

  1. André says:


    I´m trying to update an updatepanel multiple times by codebehind after a button was clicked. The problem is, that the updatepanel only gets updated after the last event has been passed.

    A code-snipped to be more detailed:

    The Button_Click EventHandler raises the following:

    for (int j = 0; j < myArray.Length; j++)


    int intResult = ……; //calculate something

    Label1.Text += "<br />Result: " + intResult;



    The Label1-Control is inside the UpdatePanel1, but the UpdatePanel1 only gets updated when the for-loop has finished.

    Any help is greatly appreciated 🙂

Skip to main content