Previous Link

  • Thread starter Thread starter Brian Shannon
  • Start date Start date
B

Brian Shannon

I have security access to certain pages on my intranet and use sql server to
store the user name and passwords and who has access to what pages.

If a user clicks a link and is not logged in they are redirected to the
login page and once sucessfully logged in they are redirected to the orginal
page trying to get into.. Currently if the use gets redirected to the login
page I have the goto link hardcoded in session variables.

I would like to know if there is a way to get the referring link? So, when
the user gets redirected to a login page I can use code to find the previous
page?

Thanks
 
Hi Brian,

use Request.UrlReferrer which contains the referrer to the current page.

hth,
Av.
 
Back
Top