I’d like to warn users when they try to close a browser window if they didn’t save the changes they made in the web form.
I’m using ASP.NET 3.5 (with ASP.NET Ajax).
Is there a common solution which I could easily implement?
EDIT: maybe my question wasn’t clear: I am specifically looking for a way which integrates gracefully in the ASP.NET Server Controls methodology.
Here is an ASP.NET extender control that will help you with this:
http://www.codeproject.com/KB/ajax/ajaxdirtypanelextender.aspx
Hope this helps. It may not perfectly fit your needs but it at least shows you how.