AJAX UpdatePanel Causes Postback

Little Known Secrete ” UpdatePanel causes Postbacks”.

Even though it is good entry point in to AJAX programming using .NET technologies, UpdatePanel does not give you much performance over traditional PostBack model.

When used, UpdatePanel causes the postback similar to the traditional postback, instantiates the control tree, and at render time realizes to send only the required response (the content in the updatepanel).

So, apart from the reduced response bandwidth and nice looking flicker free UI, updatepanel is not really getting you much performance.

Having said that, i am sure you can get away with UpdatePanel for most of your needs.

I would try to supplement this with more information.

3 thoughts on “AJAX UpdatePanel Causes Postback

  1. Hi there
    I have noticed a similar thing but have not worked out a way to detect for an updatePanel postback.

    ie my code inside if (!Page.IsPostBack) … gets executed each time the updatePanel is refreshed.

    JasonM

  2. Jason, you are right. Even for the UpdatePanel postbacks, Page.IsPostBack is true [It is a postback]. I could not find any other property that lets us determine a traditional postback vs updatepanel postback.

Leave a Reply to web developer Cancel reply

Your email address will not be published. Required fields are marked *