Retaining the values of web form controls when back button is clicked

Anjali Agarwal 941 Reputation points

I have several radio button list on my page and inside each list, I have several list items. I need to retrieve the radio button values when the back button is clicked. One way, I can do this store the values in session variables, but I was wondering if there is any easier way to store the values and then retrieve them when back button is clicked. All these radio button list are inside the Update panel and Content template.

<asp:UpdatePanel ID="updatePanel1" runat="server">
 <asp:RadioButtonList CssClass="radioBL"  ID="rdbRiver" runat="server" OnSelectedIndexChanged="rdbRiverside_indexchanged" AutoPostBack="true" >
                                <asp:ListItem Value="Yes">Yes</asp:ListItem>
                                <asp:ListItem Value="No">No</asp:ListItem>

any help will be greatly appreciated
ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
560 questions
{count} votes