I think you need to create an application, which you need to run at the server. Or, you create a page with a timer, which is sheduled to tick every 1 day or so. Then you can peform your code, which is basicly running trough some tests to see if an account is inactive.
I think it's better to do it with an application, whichs doesn't have to be running on the server. If you create an application (or windows service) which calls a web service (or bypasses a web server and calls the SQL server inmidiatly) it will work. Otherwise, not sure if it's possible, since ASP.NET pages are only executed on load (or I'm completely wrong)