hi Reidar
Since you choose this group to post such question I guess you mean , how
to do it from with in an aspnet c# page.
If you mean that, may be you can send it directly within your response
like so
Create an asp button control named back and create a handler to its
click event
In the handler of the button click event, add this line of code
Response.Write("<script> history.back() </script>");
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
The best way to do this is from a normal HTML button. Don't use a
server control because it's not necessary. An ordinary html button
will do:
<input type="button" value="Go Back"
onclick="javascript:history.Back()"/>
If you are building controls dynamically, then you can add this line
before adding the control to the page:
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.