Page change

  • Thread starter Thread starter Just D.
  • Start date Start date
J

Just D.

Guys, does anybody know how to catch the event when the page is changing? We
created a simple editor on the aspx page for our clients, but if somebody
wants to leave this page immediately he need to push the button to save all
data. It's not very convenient and we'd like to implement something more
powerful to save the page data before a next page is shown.

Any idea? Can we use for example meta tags, java scripts, or whatever to
write that?

The second question is harder - if the user wants to close the IE at the
client side can we catch that and send something to the server side
including the latest data, the logout info, etc.? Is it possible at all?

Thanks,
Dmitri.
 
Hi,

when I asked nearly the same question I got some answers that were
frustrating.
That is simply not a common web workflow to catch not saved data when
leaving the page by navigation or by closing the browser.

I tried to use the "OnBeforeUnload" event in the HTML body element. This can
call a client side JavaScript function. A server side function can not be
called this way :-(

By this you can catch even the browser closing.

Just try it...

Frank
 

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

Back
Top