I have a master page menu which gets called across various content pages. How do I maintain the state of my menu across various content pages.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Every time the menu state changes, store the current state in Session.
At the beginning of the non-postback part of your master’s page_load, set the menu settings to whatever is found in Session.
You may or may not want/need to put default settings into Session in the session_start event of global.asax, depending on the default menu state.