Access referring page in asp.net

In an asp.net web application, the referring page can be accessed via the Request object. This is useful for controls that redirect to the previous page.

To access the local path and store it to ViewState, use:

It’s also possible to access the full path via:

This entry was posted in it and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>