Explore Back Button

  • 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
 
One way would be to add the attributes to the button, such as :

Button1.Attributes.Add("onClick", "javascript:history.back();return
false;");

Cheers,
Christian T. [MSFT]
Visual Studio Update Team

- Please do not reply to this email directly. This email is for newsgroup
purposes only.
=========================================================================
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified
at http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which
they originated.
=========================================================================

--------------------
 
Back
Top