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 ...