html hyperlink to navigate back

I have a hyperlink named 'back' on a asp .net page.  When clicked it takes the user back to the start page, however I'd like the link to function like the back-button of the browser, where the user can navigate back w/o having lost information.  How can this be done?
<asp:HyperLink ID="Back" runat="server" NavigateUrl="~/default.aspx">Back</asp:HyperLink>

Open in new window

LVL 4
newbiealAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Peter HartCommented:
in html i use javascript:

<a href="javascript:history.go(-1)">Click here to go back one </a>

this goes back last page (the minus 1, but you can go back 2 pages if you put -2)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiealAuthor Commented:
This is great, but how do I make it a hyperlink instead of a button.
0
athapaCEO / CTOCommented:
<a href "xyz">xyz,/a> creates hyperlink not button.
0
newbiealAuthor Commented:
sorry, of course! Ignore my previous question.  I think I've been at it for too long tonight.  Your solution worked! Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.