Solved

Hide Menu on Master Page

Posted on 2008-10-10
2
910 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
Suggested Courses

734 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