C#/asp.net paging

  • Thread starter Thread starter Ron Fowler
  • Start date Start date
R

Ron Fowler

Folks,

I'm a newbie to web programming and c#, so please excuse
if I seem to ask silly questions!

I'm trying to figure out how to program a test on a web
site so that the users can't use the 'back' button. I
need to do it all client-side, without anything stored on
the server.

Is this possible?

many thanks in advance,
Ron
 
in the page load event (the html version not the c# version) add:

<onload = "history.forward()">

This sets the history to the current page...

So if the user presses the back button they get the current page...
 
You could use javascript to open up a window without the buttons:

window.open( 'url.aspx', 'windowname', 'toolbar=no,menubar=no' );
 
Back
Top