Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Problem with AutoPostback and DropDownlist / Multipage

Reply
Thread Tools

Problem with AutoPostback and DropDownlist / Multipage

 
 
Dennis George
Guest
Posts: n/a
 
      06-01-2005
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:

<aspropDownList 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>
</aspropDownList>

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


And So NOT:

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

<aspropDownList 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>
</aspropDownList>

And so NOT:

<iewc:MultiPage id="MultiPage1" style="<......>" Height="522px">
<iewcageView id="Page1">
<aspropDownList 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>
</aspropDownList></iewcageView>
<iewcageView id="Page2">2</iewcageView>
<iewcageView id="Page3">3</iewcageView>
<iewcageView id="Page4">4</iewcageView>
</iewc:MultiPage>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dropdownlist autopostback problem andy ASP .Net 0 03-28-2007 11:02 AM
MultiPage Expert Please (Dynamic MultiPage controls) Russ ASP .Net Web Controls 8 07-01-2004 08:57 PM
Re: DropDownlist OnSelectionChanged and AutoPostback = False S. Justin Gengo ASP .Net 0 08-15-2003 06:27 PM
Re: DropDownlist OnSelectionChanged and AutoPostback = False George Durzi ASP .Net 0 08-15-2003 03:10 PM
DropDownList and AutoPostback -- default item Null ASP .Net 1 08-05-2003 03:28 PM



Advertisments