title: Getting error while redirecting 'Response is not available in this context'
body: <p>I am using following code to redirect user to a page.</p>
  
  <pre><code>Session["USERDATA"] = user;
  if (roleName.Equals("Zerker", StringComparison.CurrentCulture))
     Response.Redirect("~/Account/Dashboard.aspx");
  </code></pre>
  
  <p>but this causing the error.</p>
  
  <blockquote>
    <p><em>Response is not available in this context.</em></p>
  </blockquote>
  
  <p>What should I do?</p>