If you are using an Asp.net menu control, put the following code in the page load:
protected void Page_Load(object sender, EventArgs e) { Menu1.Visible = User.Identity.IsAuthenticated; }
Otherwise, place the navigation bar in the placeholder and show / hide the placeholder.
source share