Problem with AutoPostback and DropDownlist / Multipage

D

Dennis George

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>
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top