Using hyperlink as back button

M

Mike P

I need to use a hyperlink as a back button, using
javascript:history.go(-1). But the ASP.NET hyperlink control doesn't
have an onClick event, and the HTML anchor tag requires a href.

How can I use the javascript to go back a page using a hyperlink?
 
K

Kevin Spencer

Use an HTML hyperlink. If you need to load it dynamically, you can put it
into a LiteralControl, panel, or whatever Control you like.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top