fallenugain
New Member
I created a page, which allows users the option to show or hide it's content sections via a show/hide button. After clicking the show/hide button, the nested panels/content becomes visible or invisible based on the button selected, then the user may save the page by clicking a save button. Problem - (no errors) but, the page is not saving the users changes into the cookie. The page contains 2 panel controls that are nested in one main Panel control.\[code\]//Front End code - The save button<asp:Button ID="savButton" runat="server" Text="Save" onclick="savButton_Click" />//psuedo code - The Panels<aspanel ID="pnlSaveContent" runat="server"> //main Panel control <aspanel ID="pnlWeatherAppCtrl" runat="server"> // panel content 1 <div>Weather App Content</div> </Panel> <aspanel ID="StockAppCtrl" runat="server"> // panel content 2 <div>Stock App Content</div> </Panel></Panel>//Back-end code: protected void Page_Load(object sender, EventArgs e) { //get the cookie if ((Request.Cookies["preferences"] != null)) { pnlSaveContent.ID = Request.Cookies["preferences"]["savePg"]; } } //set cookie protected void savButton_Click(object sender, EventArgs e) { Response.Cookies["preferences"]["savePg"] = pnlSaveContent.ID; Response.Cookies["preferences"].Expires = DateTime.MaxValue; } //end code\[/code\]...the issue: The page is not saving the changes of the main panel control. Could someone please provide some guidance as to what I