|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem with AutoPostback and DropDownlist / MultipageI 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>
SRE (Simple Rule Engine)
Error: Cannot use a leading .. to exit above the top directory. DROPDOWNLIST SELECTEDINDEXCHANGED order of usercontrols processed by events of page how to capture click event in aspx from placeholder ->control How do I create an Unordered List (UL) with ASP.NET? ASP.NET Server Controls not displayed in IE How to diisable textbox in datagrid HyperLink.NavigateUrl always adds an extra ../ when going to a higher level directory Request.PhysicalApplicationPath |
|||||||||||||||||||||||