Click here to Skip to main content
15,893,508 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a chart on asp.net page and I have bind it with database in code behind.

At every 5 minutes the chart has to update. So I have taken timer control and kept its interval property as 300000. In the tick event I have called the same function which binds the chart with data. When I run the code it clears chart after 5 mins.

Help me how can I update the chart.
Posted
Comments
Ami_Modi 12-Mar-14 8:00am    
I solved it.. I was my mistake. I had not written the code in onTick event.
Sergey Alexandrovich Kryukov 12-Mar-14 12:25pm    
Why on tick event? This is a bad idea. You should update anything only if data has changed...
—SA
Ami_Modi 12-Mar-14 23:50pm    
How can i do this?
abdussalam143 14-Mar-14 8:25am    
do you have any code that you have tried

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