Author: prashobkumar | Posted on: 8/14/2009 3:19:10 AM | Views : 287

Hi folks,
I have a page with a gridview,the contents of which are editable.there is a requirement which requires me to ask the user if he would like to save the changes to the database before exiting the browser,as in clicking the 'X' of the browser.How do i do it.i have tried the following but it showsup everytime the page posts back,i want the event to be fired only when the browser tab or window is closed.


//            ans = confirm('Hi,Would you like your changes to be saved?'); //            if (ans) {

Go to the complete details ...