Launch the web application automatically

I have an asp.net update web app. Users navigate to the page, click the refresh button, and launch the program. We also want this program to run as a scheduled task every night. Is it possible? How would you handle this?

thank

0


source to share


2 answers


You can create a shortcut in your program on your web application page (say update.aspx? Command = update) and then configure the server scheduler to run that shortcut whenever you want.



I would recommend that you use a page that has nothing on it and will only respond to a specific command, this way you reduce the risk that your page will "crash" when you don't want to.

+2


source


The best way would be to split the application into domain dlls, then your aspx page could use that DLL, and you could also write a console application that uses the same DLL. You can set up a scheduled task to run the console application at night.



+1


source







All Articles