views:

119

answers:

1

Thanks to the awesome people that answered my previous post, I was able to make a .NET Class Library and run the library from a button on my webpage.

The program is designed to run on the server constantly. It checks the database to see if there are any pending actions, then sleeps for 10 minutes. When I click the button on my webpage to run the app, it runs as expected... until I close the browser or leave the page. Also, after I click the button, the browser icon indicates that the page is loading. This sounds like my browser session is connected to this instance of the program running on the server.

What I would like is a button to start the app, independent of the browser, so that it continues to run even after I leave the page. Any ideas? I guess I am looking for some tips on the jargon and how one might implement this.

Thanks!

A: 

This link should help you out. You need to start the work in a thread and keep this worker thread in a global place in your application.

row1