Last post Feb 03, 2011 05:49 AM by fadi-ft
Jan 24, 2011 04:04 AM|fadi-ft|LINK
I am working on a project that has to do a monthly update so I need some statement to check each month and on the first day of each month a code has to be executed. I had thought of this idea but it did not work with me
for each month in a year
but when i declare month as DateInterval.Month and year as the current year some errors happen
Jan 24, 2011 06:30 AM|BoogleC|LINK
Could you post your code so we can determine what the errors are?
Jan 24, 2011 06:43 AM|nilsan|LINK
I am working on a project that has to do a monthly update so I need some statement to check each month and on the first day of each month a code has to be executed.
I think you should go for Sql Server Job :
Jan 24, 2011 10:35 AM|fadi-ft|LINK
thanks guys but it seems that u did not get my idea which is:
I have a website which has to get data periodically from an external source which is in my case another website. I have worked on it and it did the wanted functionality (I used WebClient Object to download files from the external website) so I want this
code to run periodically each month every year. So what do I need to implement in my web application in asp.net to force asp.net perform this task each month.
I think to put some code but it still work for a specific page which the code resides in it. so what i have accomplish is just the code that download files which is in its final shape:
Feb 03, 2011 05:49 AM|fadi-ft|LINK
it seems that Windows Service is my required method
any one have any idea how to create/implement Win Service cause it won't work with me