void Application_Start(object sender, EventArgs e)
{
General.conn_string = ConfigurationManager.ConnectionStrings["Calling_care"].ConnectionString;
// Code that runs on application startup
System.Timers.Timer myTimer = new System.Timers.Timer();
// Set the Interval to 1 minute (5 sec = 5000 milliseconds).
myTimer.Interval = 60000;
myTimer.AutoReset = true;
myTimer.Elapsed += new ElapsedEventHandler(myTimer_Elapsed);
myTimer.Enabled = true;
//general.insert_value_for_string("insert into tbl_test(appstart)values(getutcdate())");
}

Nitesh KejriwalRank #253 · 9.9K reputationPosted Jan 18, 2014, 5:03 AM EST
sankalp shrotriya10 reputationPosted Jan 21, 2014, 9:54 PM EST