1

Closed

maintain view state (RadioButtonList)

description

I had a page with a TextBox , two cascading dropdownlists, a radiobuttonlist and a panel.
Here is what happen when I use FolksManager with 'CaptureAll="true"' or put rel attribute for all controls (except TextBox).

I put inital text in the TextBox and made a selection in child drodownlist.
RadioButtonList has two options, one to make panel visible and the other make it disappeared.
TextBox loses its input and the child DropDownList loses its selection when I toggling the visibility of the panel with RadioButonList.

But I can work around this by putting the panel and the RadioButtonList in a separate FolksContainer and leave DropDownLists with rel attributes.
Not sure why, please help. Thanks.

<asp:TextBox ID="TextBoxContent" runat="server" TextMode="MultiLine" ..................../>
<asp:DropDownList ID="DDLParent" runat="sever" AutoPostBack="true" OnSelectedIndexChanged="DDLParent_SelectedIndexChanged"..................... />
//DDLParent_SelectedIndexChanged : databind DDLChild

<asp:DropDownList ID="DDLChild" runat="sever" AutoPostBack="true"................... />

<asp:RadioButtonList ID="RBLOption" runat="server" onselectedindexchanged="RBOption_SelectedIndexChanged" AutoPostBack="true"...................>
<asp:ListItem Text="Visible" value="1" Selected="True"/>
<asp:ListItem Text="Invisible" value="2" />
</asp:RadioButtonList>

<asp:Panel ID="Panel1" runat="server" >
Panel Display Text
</asp:Panel>
Closed Mar 13, 2008 at 6:25 PM by edurdias

comments

wrote Mar 13, 2008 at 6:25 PM

Resolved with changeset 9254.

wrote Feb 1, 2013 at 4:47 AM

wrote May 13, 2013 at 7:33 PM