Using the back button from the internet explorer

  • Thread starter Thread starter Microsoft
  • Start date Start date
M

Microsoft

Hi,

I have written a C# web app and need to simualte the Back button.

Like : Response.Redirect;
Except: Response.Back;

I found that I need to use the History.Back but cannot get it to work

Any help would be great!

Thanks,
Bryan
 
Bryan,

You should do this in the client(Java Script). using some thing like
<input type=button onclick='history.back();'>

If you're using a server control button to "go back" you may register
the client script code like below.

Button1.Attributes.Add("onclick","history.back();return false;");

Hope this helps,
Souri Challa
 
Microsoft said:
Hi,

I have written a C# web app and need to simualte the Back button.

Like : Response.Redirect;
Except: Response.Back;

I found that I need to use the History.Back but cannot get it to work

Any help would be great!

What exactly do you mean by "simulate the Back button"? Resend the
previous response? Redo the previous request?

Cheers,
 

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

Similar Threads


Back
Top