How can i get the Page Close Event In ASP.NET?? but without Java script
4 Answers
ASP.NET Handles Events by posting back to itself. Since this doesn't happen when a page is closed, ASP.NET can not handle this type of event.
Keep in mind though, that ASP.NET generates a good amount of Javascript on its pages by default, so you shouldn't be completely against handling this kind of Browser Event in Javascript.
Comments
There is a tutorial on how to do it here but it uses ajax and page methods. I don't think it is possible without using any javascript at all.