Solved

Hide Menu on Master Page

Posted on 2008-10-10
2
909 Views
Last Modified: 2008-10-10
I am using Visual Web Developer 2008 Express.

I have a Menu on my Master Page. By default, a login page is displayed when the site is opened. I want to know how to hide the Menu on the Master Page when the Login Page is opened. When the Login is successful, then the Menu must appear.
0
Comment
Question by:rpkhare
2 Comments
 
LVL 20

Assisted Solution

by:informaniac
informaniac earned 20 total points
ID: 22685365
Don't create the login page using the masterpage.

Once the user logs in redirect to the page that uses masterpage.
0
 
LVL 8

Accepted Solution

by:
tiagosalgado earned 30 total points
ID: 22685575
Or if you realy want to use MasterPage in login page, and if you use the ASP.NET Menu, u can do something like this in your content page
Menu m = Master.FindControl("Menu1") as Menu;
if (m != null)
{
m.Visible = false;
}

Open in new window

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question