Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   Problem with AutoPostback and DropDownlist / Multipage (http://www.velocityreviews.com/forums/t776200-problem-with-autopostback-and-dropdownlist-multipage.html)

Dennis George 06-01-2005 06:27 AM

Problem with AutoPostback and DropDownlist / Multipage
 
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>




All times are GMT. The time now is 10:30 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.