Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to call a method for every 1min can anyone please give a sample code. I tried doing using thread but its not helping me
Posted
Comments
Sarrrva 12-Oct-13 14:07pm    
can you explain more specific (desktop application or web applicaion)?

check this link which explains how to schedule a windows service and timer to accomplish your requirement .

http://www.aspfree.com/c/a/C-Sharp/Timer-Objects-in-Windows-Services-with-C-NET/[^]

Hope this helps
 
Share this answer
 
You can use a System.Timer see here[^] for example code.
 
Share this answer
 
You can do it with windows service and webservice easily
Check here Combine Web and Windows Services to Run Your ASP.NET Code at Scheduled Intervals[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900