Getting back to the requesting page

Results 1 to 2 of 2

Thread: Getting back to the requesting page

  1. #1
    warble Guest

    Default Getting back to the requesting page

    I have a form with list boxes that has the onchange event set to go to another page and update the database. What I need to know is how to get back to the sending page once the update has been completed.<BR>Response.redirect doesn&#039t work.<BR>Help

  2. #2
    Join Date
    Dec 1969

    Default RE: Getting back to the requesting page

    Response.Redirect will work...<BR><BR>You need to grab the URL of the sending page using the Request.ServerVariables("HTTP_REFERER") command. You can then set the page to redirect using...<BR><BR>Response.Redirect(Request.ServerVa riables("HTTP_REFERER"))<BR><BR>Although I prefer assigning it a variable first to tidy it up a bit...<BR><BR>strReferer = Request.ServerVariables("HTTP_REFERER")<BR>Respons e.Redirect(strReferer)

Posting Permissions

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