Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Hide Menu on Master Page

Posted on 2008-10-10
2
Medium Priority
?
915 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 60 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 90 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

916 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