471,329 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,329 software developers and data experts.

Prompt user to save changes before navigating away.

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.
Jul 21 '05 #1
1 2766
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]

"rufus" <ru***@discussions.microsoft.com> wrote in message
news:C3**********************************@microsof t.com...
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.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Weston Weems | last post: by
4 posts views Thread by markalroberts | last post: by
11 posts views Thread by John J. Hughes II | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.