Problem with AutoPostback and DropDownlist / Multipage

Discussion in 'ASP .Net Web Controls' started by Dennis George, Jun 1, 2005.

  1. Hi!

    I have a Problem with the autopostback function at sites using a MultiPage
    control.
    In HTML-view, if I place the code of the DropDownList above the code for the
    MultiPage, everything workes right, but if I place it within the MultiPage
    (in an PageView) or behind the MultiPage, the AutoPostback function dows not
    work. (Site refresh, but no jump into EventProcedures and the Site forgets
    the selected Item).

    Dows anybody know the reason, or better.... a solution??

    Thanks in advance.

    Dennis George

    Code sample (I don't wrote the styles):

    With this it is ok:

    <asp:DropDownList id="DropDownList1" style="<.....>" runat="server"
    width="81px" Height="48px" AutoPostBack="True">
    <asp:ListItem Value="1">1</asp:ListItem>
    <asp:ListItem Value="2">2</asp:ListItem>
    <asp:ListItem Value="3">3</asp:ListItem>
    </asp:DropDownList>

    <iewc:MultiPage id="MultiPage1" style="<......>" Height="522px">
    <iewc:pageView id="Page1"></iewc:pageView>
    <iewc:pageView id="Page2">2</iewc:pageView>
    <iewc:pageView id="Page3">3</iewc:pageView>
    <iewc:pageView id="Page4">4</iewc:pageView>
    </iewc:MultiPage>


    And So NOT:

    <iewc:MultiPage id="MultiPage1" style="<......>" Height="522px">
    <iewc:pageView id="Page1"></iewc:pageView>
    <iewc:pageView id="Page2">2</iewc:pageView>
    <iewc:pageView id="Page3">3</iewc:pageView>
    <iewc:pageView id="Page4">4</iewc:pageView>
    </iewc:MultiPage>

    <asp:DropDownList id="DropDownList1" style="<.....>" runat="server"
    width="81px" Height="48px" AutoPostBack="True">
    <asp:ListItem Value="1">1</asp:ListItem>
    <asp:ListItem Value="2">2</asp:ListItem>
    <asp:ListItem Value="3">3</asp:ListItem>
    </asp:DropDownList>

    And so NOT:

    <iewc:MultiPage id="MultiPage1" style="<......>" Height="522px">
    <iewc:pageView id="Page1">
    <asp:DropDownList id="DropDownList1" style="<.....>" runat="server"
    width="81px" Height="48px" AutoPostBack="True">
    <asp:ListItem Value="1">1</asp:ListItem>
    <asp:ListItem Value="2">2</asp:ListItem>
    <asp:ListItem Value="3">3</asp:ListItem>
    </asp:DropDownList></iewc:pageView>
    <iewc:pageView id="Page2">2</iewc:pageView>
    <iewc:pageView id="Page3">3</iewc:pageView>
    <iewc:pageView id="Page4">4</iewc:pageView>
    </iewc:MultiPage>
    Dennis George, Jun 1, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Null
    Replies:
    1
    Views:
    569
    S. Justin Gengo
    Aug 5, 2003
  2. George Durzi
    Replies:
    0
    Views:
    713
    George Durzi
    Aug 15, 2003
  3. S. Justin Gengo
    Replies:
    0
    Views:
    3,127
    S. Justin Gengo
    Aug 15, 2003
  4. andy
    Replies:
    0
    Views:
    624
  5. Russ
    Replies:
    8
    Views:
    190
Loading...

Share This Page