How to go back to the previous page without postback concern?

goodmorningsky

Centurion
Joined
Aug 18, 2003
Messages
172
Hi all,
I want to put Back button that redirect to previous page that should not be the same page caused by postback event.
How can I ignore postback event?
I thought about Page.Request.UrlReferrer.
But, it gives the postback page.

What is common and standard approach?
 
You can use javascript, "javascript.history.go(-1)". The catch is that the code does not seem to work with asp.net buttons, so you will have to work with Html input buttons.

Mike55
 
Back
Top