B
Bobby Edward
Using built in membership....
I have a loginredirect page that redirects the user to a default page based
on the role (User.IsInRole).
Example...
If User.IsInRole("Admin") then response.redirect("admin/mypage.aspx").
When a non-valid user tries to access a "private" page, of course, it
redirects them to the login page for them to sign in.
How can I code this into the loginredirect page: If they were redirected to
the login page (when trying to access another page they didn't have access
to) and they are now validated OK, then redirect them to the page they were
trying to access before (NOT the default page)?
Thanks!
I have a loginredirect page that redirects the user to a default page based
on the role (User.IsInRole).
Example...
If User.IsInRole("Admin") then response.redirect("admin/mypage.aspx").
When a non-valid user tries to access a "private" page, of course, it
redirects them to the login page for them to sign in.
How can I code this into the loginredirect page: If they were redirected to
the login page (when trying to access another page they didn't have access
to) and they are now validated OK, then redirect them to the page they were
trying to access before (NOT the default page)?
Thanks!