void Application_Start(object sender, EventArgs e) { // Code that runs on application startup timer.Interval = 60000 ; //300,000 miliseconds = 5 minutes 1000 is 1 Sec timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Elapsed); //timer.Start(); timer.Enabled = true; } void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { obj.GetData(); obj.InsertDataIntoTable(); obj.UpdateDataOfRequiredTable(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)