Cancelling a postback event at the master pagelevel...

S

Stu

Hi,

I am writing a script which needs to detect and block if the user has
pressed the Refresh button on the browser.

I have some code on the masterpage that sets up a hidden field counter and
uses a session to keep track of the last value used - if it is the same it
is a refresh - this is detecting fine.

The problem - Now I am detecting the refresh I need to stop the child page
from processing the request. Is there any way to do this globally on the
master page without having to alter 100's of pages individually?

Thanks in advance,

Stu
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top