3
Answers

How do I disable Back button on the browser?

I would like to disable the back button on the browser.  I have done it before using this code on the page load, but for some reason it is not working anymore.

        Response.Cache.SetCacheability(HttpCacheability.NoCache)

the application that I am running it is actually running as an iFrame for a second application, I wondering if this is the reason my code it is not working.
Answers (3)
0
Zoran Horvat

Zoran Horvat

NA 5.7k 516.3k 13y
You can create framed Web page. Then in the frame which should depict the latest feed contents you load HTML which automatically reloads every, say, 30-60 seconds (don't do it more often unless you're absolutely sure that client can refresh contents in time much shorter than 1 second anywhere in the world).

Make sure that this HTML is small and loads very quickly or otherwise users will have discomfort looking at the page which spends significant time in incomplete state.

If you can't load it quickly then make a background process which does the heavy job processing latest feed state, and simply creates fixed HTML which would then quickly be presented to users on every reload.

Zoran
Accepted
0
Jiteendra Sampathirao

Jiteendra Sampathirao

NA 6.9k 1.5m 13y

Hi,
use AJAX to refresh the specific part of the page.........