Author: ASP__DEVELOPER | Posted on: 8/27/2009 4:02:11 AM | Views : 233

suppose Member logs in so the moment the user clicks on "Login Button" the login control should navigate the member on the homepage that is common for members and anonymous visitors,
BUT if admin logs in using the same login control, as soon as the admin hits the "Login Button" the login control should navigate the admin to the different version of homepage that is defined in the Admin folder of the project, so that home page is only for Admin with all the private controls..
i have tried everything...
---------------------1----------------------

protected void Login1_LoggedIn(object sender, EventArgs e)
    {
        if (User.IsInRole("Admin"))
        {
            // Redirect to admin page
        }
   ...

Go to the complete details ...