I have this simple code to execute an SQL query
It deletes some rows from a table.
When I put this command in a button everything works just fine, and rows get deleted.
But I want to put it in Global.asax file in Session_end section, so everytime an session ends, this command gets executed
The problem is that this command doesn't work in Session_end event.
I know a session lasts for about 20min, but after couple hours I still don't see any changes in my database.
Code:
Dim PretragaAdapter As New mysite.DataSet1Adapters.PRETRAGATableAdapter()
PretragaAdapter.DeletePoDatumu()
It deletes some rows from a table.
When I put this command in a button everything works just fine, and rows get deleted.
But I want to put it in Global.asax file in Session_end section, so everytime an session ends, this command gets executed
The problem is that this command doesn't work in Session_end event.
I know a session lasts for about 20min, but after couple hours I still don't see any changes in my database.