Bug: autopostback and wizards

Last post 12-30-2005 3:49 PM by Eilon. 1 replies.

Sort Posts:

  • Bug: autopostback and wizards

    12-28-2005, 2:20 PM
    • Member
      15 point Member
    • cpdog
    • Member since 12-28-2005, 7:13 PM
    • Posts 3

    A javascript occurs when you do the following:

    <atlas:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering=true />

    <atlas:UpdatePanel runat=server ID="asd1">

    <ContentTemplate>

    <asp:Wizard ID="Wizard1" runat="server">

    <WizardSteps>

    <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 1">

    </asp:WizardStep>

    <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 2">

    <asp:DropDownList AutoPostBack=true runat=server ID="list1">

    </asp:DropDownList>

    </asp:WizardStep>

    </WizardSteps>

    </asp:Wizard>

    </ContentTemplate>

    </atlas:UpdatePanel>

    Note that the the dropdownlist has to have autopostback=true (radio buttons also have the same problem), and that the dropdownlist has to be in a step of the wizard > 1.

  • Re: Bug: autopostback and wizards

    12-30-2005, 3:49 PM
    • Contributor
      5,639 point Contributor
    • Eilon
    • Member since 06-26-2002, 2:14 PM
    • Redmond, WA
    • Posts 964

    Thanks for reporting this issue. I just opened a bug in our bug tracking database for tracking this issue. The cause of this is that the number of hidden fields in the page changes from the initial request and then subsequent request, and ASP.net Atlas just doesn't handle this really well right now. Specifically, the __LASTFOCUS hidden field only exists in the second request.

    To workaround this, here are some possible options:

    1. Don't use AutoPostBack in the DropDownList.

    2. Use some control on the page that will trigger the focus hidden field to show up on the first request. I'm not really sure how to get this to happen though.

    Thanks,

    Eilon

     

    Blog: http://weblogs.asp.net/LeftSlipper/
Page 1 of 1 (2 items)