Updatepanel queue events

Last post 02-02-2008 2:29 PM by gt1329a. 1 replies.

Sort Posts:

  • Updatepanel queue events

    02-02-2008, 3:20 AM

    Hi guys,
    I've a question.

    I've a Default page with an updatepanel setted in Conditional mode.

    When a postback inside the panel was fired the queue events look like this:

    Page_Load
    UpdatePanel1_Load

    is it correct?

    What kind of request shell I see on the "Web Development Helper"?
    Do you have any pages that explain the events queue of a asp.net page with a updatepanel?
    Do you have any tutotials thta explain the correct way how save the element of an update panel that I will use in another one (ex: selectvalue from dropdownlist in a updatepanel1, change the label in updatepanel2) ?

    tnx

    Salvatore Di Fazio
    http://blogs.ugidotnet.org/SalvoDiFazio/
    http://blogs.ugidotnet.org/SalvatoreDiFazio/
  • Re: Updatepanel queue events

    02-02-2008, 2:29 PM
    Answer
    • Loading...
    • gt1329a
    • Joined on 06-23-2002, 8:53 PM
    • Atlanta
    • Posts 1,704

    That's the correct order of events, yes.

    You'll see it as a regular post request, but there is an extra header of "X-MicrosoftAjax: Delta=true".

    It's not comprehensive, but this post might help a little with the events:  http://encosia.com/2007/10/24/are-you-making-these-3-common-aspnet-ajax-mistakes/

    To do that, you'd want to set the dropdown to autopostback.  Then, add the dropdown as an AsyncPostbackTrigger in UpdatePanel2's Triggers collection.  In your Dropdown_OnSelectedIndexChanged handler, if you update the label in UpdatePanel2, the update will automatically be displayed. 

    These video tutorials might be helpful:  http://www.asp.net/learn/ajax-videos/

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter