Path to Previous Page

  • Thread starter Thread starter Q Dennis
  • Start date Start date
Q

Q Dennis

From a master page menu users can select a link to change user info. How
can I return to the page this page was called from, after proccessing a
Post?
 
unless the user's proxy server strips them, you can check the refer header.
a better approach is to pass the return link in the url or as a hidden
field.

-- bruce (sqlwork.com)
 
Q Dennis said:
From a master page menu users can select a link to change user info. How
can I return to the page this page was called from, after proccessing a
Post?

Use ServerVariables to get HTTP_REFERER. That will contain the url
that the client came from.

_Randal
 
You can simulate a browser back button from client-side javascript using
"javascript:history.go(-1)".

Use an HTML control

<INPUT style="Z-INDEX: 109; LEFT: 239px; WIDTH: 56px; POSITION: absolute;
TOP: 69px; HEIGHT: 22px" onclick="javascript:history.go(-1)" type="button"
value="< Back">

Use serverside control....in PageLoad:

imgBack.Attributes.Add("onclick", "javascript:history.go(-1)")

otherwise

you need to response.redirect("MainMenu.aspx")

HTH

Harry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top