title: C# MVC Change the Startup Page
body: <p>I just created my first C# Razor MVC3 project. I've dabbled in it before but this is the first time I created one.</p>
  
  <p>Anyhow, I have a simple question. I am using the <code>MembershipProvider</code> <code>AspNetSqlProfileProvider</code> that was build with the default project.</p>
  
  <p>My question is simple, where and how do I check if the user is logged on before it loads the <code>Home/Index.cshtml</code> so that I can direct them to another page?</p>
  
  <p>If they are logged on, I want to take them to the customer portal.</p>
  
  <p>If they are not logged on, I want to take them to the logon screen.</p>