ASP.net:

Request.UrlReferrer.ToString()

Javascript:

history.back(-1);event.returnValue=false;

參考文章:

  • http://blog.yam.com/thisismysoul/article/15154234