I have asp.net application. I am forcibly end this application and on the time of that i want to update my view page count value in database. If anyone known plz help me. I also written code in global.asax file
void Application_End(object sender, EventArgs e) { // Code that runs on application shut`enter code here`down }
but this is not working when i forcibly end application. i want to update data in both cases either application end forcibly or gracefully.