Error during page redirection (asp.net)
<p>When I try to make a page redirection according  to role using below code, somehow it gave me an error said that "The name 'Roles' does not exist in the current context". I don't have any clue what is wrong with my coding. Please help. Thanks.</p>

<pre><code>protected void Login1_LoggedIn(object sender, EventArgs e)
{
    {
        if (Roles.IsUserInRole(Login1.UserName, "Aemy"))
            Response.Redirect("~/Admin/Home.aspx");
        else if (Roles.IsUserInRole(Login1.UserName, "User"))
            Response.Redirect("~/Welcome/User1.aspx");
    }
}
</code></pre>
