back button

  • Thread starter Thread starter Guest
  • Start date Start date
You can't with C#, as C# is server side, not client side. you have to do
browser magic in JavaScript. You can disable like so:

<body onLoad="history.go(+1)">

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Thank you for your reply. I have never used Java script in the application,
can you give me more example how I should include this to my application.
 
With that particular bit, just replace the body tag in HTML with that tag.
if you want all pages to have that, you can alter the default page templates
under the Visual Studio folder for the language type.

By default (Visual Studio 2005):
VB.NET = C:\Program Files\Microsoft Visual Studio 8\VB
C# = C:\Program Files\Microsoft Visual Studio 8\VC#

Do a search for *.aspx on the folder in question and open and edit the body
tag. Do not replace any of the template tags. I do this to get rid of the
default grid view, as I would rather lay things out with CSS.

The history.go(+1) essentially sticks history into an invalid (future)
state. If a person clicks back, it will reopen the current page, which, once
again, sets history to a future state ... ad nauseum.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Back
Top