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. Advertisements

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:
    659
    S. Justin Gengo
    Aug 5, 2003
  2. S. Justin Gengo
    Replies:
    0
    Views:
    3,338
    S. Justin Gengo
    Aug 15, 2003
  3. Anonymous

    DropDownList and AutoPostBack

    Anonymous, Feb 9, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    533
    Anonymous
    Feb 9, 2005
  4. Corey
    Replies:
    11
    Views:
    6,469
    Cor Ligthert
    Mar 20, 2005
  5. andy
    Replies:
    0
    Views:
    787
  6. Girish

    DropDownList Control and AutoPostBack problems

    Girish, Jan 30, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    314
    Girish
    Jan 30, 2004
  7. Russ
    Replies:
    8
    Views:
    465
  8. Corey

    Asp.net DropDownList, AutoPostBack, and ViewState

    Corey, Mar 18, 2005, in forum: ASP .Net Web Services
    Replies:
    10
    Views:
    735
    Cor Ligthert
    Mar 20, 2005
Loading...