Redirecting To Previous Page

Results 1 to 3 of 3

Thread: Redirecting To Previous Page

  1. #1
    Join Date
    Dec 1969

    Default Redirecting To Previous Page

    Is there a way, besides javascript, to redirect the user back to the previous page. Here&#039;s my code now, but I would like to go back one page. This page can be accessed from multiple locations so hardcoding the page will not work.<BR><BR>if Request.Form("btnCancel") &#060;&#062; "" then<BR> CleanUpObjects()<BR> Response.Redirect "Deliveries.asp"<BR>end if<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Redirecting To Previous Page

    On your form page, find out what the referring page was. Should be in Request.ServerVariables("HTTP_REFERER") (or is it "HTTP_REFERRER"? -- 2 "R"s)<BR><BR>Then put that value in a hidden form field and pass it to your form handler. Then you can use that value to redirect to the original requesting page.<BR><BR>HTH

  3. #3
    Join Date
    Dec 1969

    Default dethwalker

    off topic remark but dont you play warcraft 2 ??? =D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts