Previous Link

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
 
A

avnrao

Hi Brian,

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

hth,
Av.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top