maintain view state (RadioButtonList)

Mar 13, 2008 at 4:57 AM
Edited Mar 13, 2008 at 5:03 AM
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>


Coordinator
Mar 13, 2008 at 2:27 PM
Hi waveyus,

I'm testing your case. I'll send you a feedback soon (today).

Thanks for help us.
Coordinator
Mar 13, 2008 at 5:08 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.