How to retrieve the URL from the previous page ASP

0

Hello, good afternoon.

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

  • An MVC page has a link to an ASP page
  • Click the link
  • Opens the ASP page ** At this moment, how do I save the URL of the MVC page?

Obg!

    
asked by anonymous 05.04.2018 / 20:52

1 answer

2

Via JavaScript you can use:

var paginaAnterior = document.referrer;

If you choose to capture by Classic ASP

paginaAnterior = Request.ServerVariables ("HTTP_REFERER")
    
05.04.2018 / 21:13