Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Determine the Previous Page

  Asked By: Amrita    Date: Nov 08    Category: Sharepoint    Views: 2275

Is there a way to determine the previous page programatically - from
code in a web part?



1 Answer Found

Answer #1    Answered By: Richard Davis     Answered On: Nov 08

A few methods come to mind:

1) Read the value of the HTTP_REFERER header (usually available but
not always - this is an HTTP protocol thing)

2) Read the Source query string parameter (sometimes available -
this is a SharePoint-specific thing)

3) If you are coming from a location you control, set a query
string parameter as part  of the target URL for the page  containing the
web part

Didn't find what you were looking for? Find more on Determine the Previous Page Or get search suggestion and latest updates.