Logout control hide in login page using master page
-
Hi all, I have a control in my master page like this
Logout How i can hide this in my login page using this master page -
Hi all, I have a control in my master page like this
Logout How i can hide this in my login page using this master pageYou can define the property on the master page and set its value visibility to true of false on content page by using their property.
-
You can define the property on the master page and set its value visibility to true of false on content page by using their property.
Menu MyMasterMenu = (Menu)Master.FindControl("logoutLink"); MyMasterMenu.Visible = false; I done like this in my login page but not working
-
Menu MyMasterMenu = (Menu)Master.FindControl("logoutLink"); MyMasterMenu.Visible = false; I done like this in my login page but not working
In the Page_Load() of the Masterpage.cs try out the following if(Session["login"]!="") //make visible the "logout" link else //make visible the "login" link
-
Hi all, I have a control in my master page like this
Logout How i can hide this in my login page using this master page -
Hi all, I have a control in my master page like this
Logout How i can hide this in my login page using this master pageIf it were my project I would create this as a server control and have it set its own visibility. That way it could be used anywhere and not so tightly coupled to your masterpage.
Failure is not an option; it's the default selection.
-
Hi all, I have a control in my master page like this
Logout How i can hide this in my login page using this master pageCreate two different masterpages one for specifically LoginPage without any Menu or Logout Ribbon and other for after Login with all functionality.
- Happy Coding - Vishal Vashishta