ttkalec1
Member
- Joined
- Feb 26, 2005
- Messages
- 19
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 doesnt work in Session_end event.
I know a session lasts for about 20min, but after couple hours I still dont see any changes in my database.![Confused :confused: :confused:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f615.png)
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 doesnt work in Session_end event.
I know a session lasts for about 20min, but after couple hours I still dont see any changes in my database.
![Confused :confused: :confused:](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f615.png)