Prompt user to save changes before navigating away.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

In an ASP.NET application I have tried using javascript to prompt a user to
save their changes if they try and navigate away without saving their
changes. The problem is that this client-side solution is not reliable under
different browser-sets. Does anyone know of a robust server-side solution to
this problem? Or can anyone at least point me in the right direction because
I am having great difficulty with it.

Thanks in advance.
 
Hello Rufus,

Firstly, I would like to tell you that it is not feasible to have
a generic solution for across browsers due to the limitations of
Javascript.

So, what you can do is to write the code for one browser and write the code
for
it in the Session Expire event of Global.ascx.I suggest Internet Explorer as
it is the
most popular and widely used browser.

HTH

Mona[Grapecity]
 
Back
Top