Author: programercek | Posted on: 7/17/2010 7:45:50 AM | Views : 482

This code works:
if (Page.User.Identity.IsAuthenticated)
        {

            Response.Redirect("test.aspx");

        }

        else
        {

            Response.Redirect("error.aspx");



        }

    }
 
But I have another problem.
If the user writes www.domain.com / test.aspx and is not registered, return: Response.Redirect ("error.aspx");
However, if the user logs back to the site to redirect www.domain.com / test.aspx (auto).

Please Hel ...

Go to the complete details ...