Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.net simulate browser back button

Tags:

asp.net

I'm working on my ASP.NET web project using VS2010, C#, I'm inserting a hyperlink in my page, labeled as BACK, and I want it to act like browser back button, how should I implement it? what is the easiest way? how should I set its navigateURL property? thanks

like image 201
Ali_dotNet Avatar asked Oct 01 '11 19:10

Ali_dotNet


Video Answer


1 Answers

You don't need ASP.NET, just use this HTML/JScript code:

<a href="javascript:history.go(-1)">Back</a>

like image 109
Al Kepp Avatar answered Oct 20 '22 12:10

Al Kepp