Show Sidebar Menu when user Loggedin using C# and VB.Net in ASP.Net

Last Reply one month ago By dharmendr

Posted one month ago

I have an asp.net web project. And i want to have two menu.

one of the is on the top of the page and shows in all of the other pages(i put this on the master page), and another one is  a sidebae menu and shown after user logged in.  how can i do this in my project?!

should i use another master page for the second menu bar?!

Is there a elegant way to approach this?

 

You are viewing reply posted by: dharmendr one month ago.
Posted one month ago

Hi dorsa,

No there is no need to add another master page. You can place the sidebar menu in the same master page and place the sidebar menu content inside a panel and set the visible property to false in the page load. When user logged in then set the visible property to true to show in the page.

For accessing the panel in child page i.e. after login refer below link.

Access control in Master Page from Child Content Page in ASP.Net using C# and VB.Net