Go back in WebForm

R

ruca

Hi

I have an image button (called ibtnBack) that I want when clicked he go to
the previous page, just like it happens when you press back button of
Internet Explorer.
For that I already used this two things in Page_Load, but both don't worked:

1 - ibtnBack.Attributes.Add("OnClick", "javascript:history.back();")

2 - ibtnBack.Attributes.Add("OnClick", "javascript:history.go(-1);")


What to do more???
I have to said that I'm using frames, if this it's important.
 
O

One Handed Man \( OHM - Terry Burns \)

<IMG src="VJToCSharp.bmp" onclick="history.back(1);">

--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top