Ajax Timer control in ASP.Net
-
Hi All.. I am just trying with Timer control in my web project. I have to check database at every minute and change the updates in my page. How can I do? Thanks in Advance
-
Hi All.. I am just trying with Timer control in my web project. I have to check database at every minute and change the updates in my page. How can I do? Thanks in Advance
In the OnTick event of the Timer Control add your logic to check the database and do the necessary changes.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
-
In the OnTick event of the Timer Control add your logic to check the database and do the necessary changes.
"Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)
Ya... My code is like.. protected void NotificationTimer_Tick(object sender, EventArgs e) { //My code to get data from db } Its working fine...But every 1 minute the page should refreshed so , remaining in the UpdatePanel like grid also loaded once again... whats the problem?????? How to avoid this?