How to recover the URL from previous ASP page

Asked

Viewed 499 times

0

Everybody, good afternoon, everybody.

I wonder if anyone has any tips for me to get the URL of the previous page in the following scenario:

  • A MVC page has a link to an ASP page
  • Click on the link
  • Open the ASP tab ** At this time, how do I save the URL of the MVC page?

Obg!

1 answer

2


Via Javascript you can use:

var paginaAnterior = document.referrer;

If you choose to capture the ASP Classic

paginaAnterior = Request.ServerVariables ("HTTP_REFERER")

Browser other questions tagged

You are not signed in. Login or sign up in order to post.