Using hyperlink as back button
am 31.01.2008 12:35:06 von 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?
*** Sent via Developersdex http://www.developersdex.com ***
Re: Using hyperlink as back button
am 31.01.2008 13:06:57 von 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
"Mike P" wrote in message
news:eZZrU1$YIHA.4028@TK2MSFTNGP06.phx.gbl...
>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?
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
Re: Using hyperlink as back button
am 31.01.2008 21:23:01 von MisbahArefin
try
navigateurl="javascript:history.go(-1);" />
--
Misbah Arefin
"Kevin Spencer" wrote:
> 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
>
> "Mike P" wrote in message
> news:eZZrU1$YIHA.4028@TK2MSFTNGP06.phx.gbl...
> >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?
> >
> >
> >
> > *** Sent via Developersdex http://www.developersdex.com ***
>
>
>