Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to find name of previous page

Status
Not open for further replies.

luloo

Programmer
Jun 23, 2005
3
US
I have a page with a datagrid, and depending on what previous page called this current page, I want the user to be able to go back to that previous page when they click a close button.

I was thinking of assigning the name of the previous page in a hidden label somewhere on the datagrid's page, then apending this to the Server.Transfer/Response.Redirect

Any suggestions are welcome!

Thanks!
 
you could use use the HTTP_REFERER


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks ca8msm!

What I did was hold the Request.Querystring("value") in a hidden label on the form. If it's blank, then the user is hitting the page the first time, if the label is populated, then I know to proceed with some different code.

Thanks! I'll try to use HTTP_Referer too!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top