Hi,
I am doing some scheduled jobs with C# form applications. For example connecting a db and getting some data. Its not problem with .exe program. Now I wanna build a web site, but I dont know how to do it with .aspx pages. Because .aspx pages only works when they called. How can I do that with .aspx pages?
Question about C# .aspx pages(Schedule problem)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pramod Kumar NandagiriRank #6,963 · 252 reputationPosted Feb 21, 2012, 5:31 AM EST
And write code for connecting a db and getting some data in Timer_tick event in code behind like below:
protected void Timer1_Tick(object sender, EventArgs e)
{
sqlconnection con=new sqlconnection(strcon);
....
....
GridView1.DataBind()
}
yokzuRank #5,421 · 300 reputationPosted Feb 21, 2012, 8:35 PM EST