I am sabareeswaren currently doing a project. i am doing the project in asp.net using c#. could any one tell me how to do some action(Update the database) while closing the window? I tried "Page_UnLoad()" method, but its not working.Its very urgent, so please any one help me..... Thanks in Advance!!!!!