title: Problem Redirecting From MasterPage in Asp.net mvc
body: <p>I have a masterpage on which ill check for a condition if condition is true i want to redirect it to a particular view. how can i do this because on masterpage either view() or RedirectToAction() function are available. My condition is</p>
  
  <pre><code>if(Session["Name"]==null)
  //redirect to login
  else
  //work as usual
  </code></pre>