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.

Similar Posts...

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

3 Comment(s)

  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

    JasonM | Jun 24, 2007 | Reply

  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.

    budigelli | Jun 24, 2007 | Reply

  3. You can detect an updatepanel postbak this way:
    http://forums.asp.net/p/1137853/1822541.aspx#1822541

    web developer | Feb 1, 2008 | Reply

Post a Comment