Prevent user from closing without saving

0
0

Wisej v 3.17 .NetFramework app
I want to detect whenever a user closes the browser or a tab.
if they are editing a record when they close the browser or tab, I need
to detect that and message them to confirm they want to abandon their editing.

I think this concept is called “Intention to close”???
That’s when you go to close and a website will show a popup with an offer
of some sort.. last minute sales pitch etc…

If they confirm, let them close, delete user from loggedin table and
add a record to the loginout table then close the app.
If not editing , just delete user from loggedin table and
add record to the loginout table and close app.

I have sparred with ChatGPT, CoPilot and GitHub AI’s but all kept feeding
me Net Core code. It looks like this is doable but I’m missing something.

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.