Appeareantly I figured it out.
Here is what I did.
<% if(Session["loggedin"] == null) { %>
<uc1:nav runat="server" ID="nav" />
<% } else { %>
<uc1:nav runat="server" ID="nav2" />
<% } %>
More Related Contents:
- Keeping ASP.NET Session Open / Alive
- “The Controls collection cannot be modified because the control contains code blocks”
- How to access session variables from any class in ASP.NET?
- Web app blocked while processing another web app on sharing same session
- How to set session timeout in web.config
- Advantages of Cache vs Session
- Access HttpContext.Current from different threads
- HttpContext.Current.Session is null when routing requests
- How do I get the full url of the page I am on in C#
- How to calculate the sum of the datatable column in asp.net?
- HttpContext.Current.Session is null in Ashx file
- What is the best way to determine a session variable is null or empty in C#?
- Calling a method in parent page from user control
- How can I get the value of a session variable inside a static method?
- How to delete cookies on an ASP.NET website
- How to Kill A Session or Session ID (ASP.NET/C#)
- How to share sessions between PHP and ASP.net application?
- Access ASP.NET control from static [WebMethod] (JS ajax call)
- What is the difference between a Session and a Cookie in ASP.net?
- Unable to serialize the session state
- C# Clear Session
- Document.Ready() is not working after PostBack
- how safe is it to use session variables – asp.net / c#
- Can OWIN middleware use the http session?
- ‘Session’ does not exist in the current context
- Memory leak in Data Access layer using enterprise library
- Is current request being made over SSL with Azure deployment
- Why use HttpClient for Synchronous Connection
- How can I convert a class into Dictionary?
- Find a control in a webform