Website timer tick makes buttons unresponsive


I have a ASP.NET C# website which has a timer that ticks every 0,8 seconds. When it ticks, it gets a value from an SQL database, and updates a textbox (which is in an UpdatePanel) with the new value. This part works well, and the value on the screen is updated fairly smoothly. I disable the timer at the start of its tick and enable it again when the value in the textbox have been updated to avoid "double-ticks" if the sql server responds to slow.

My problem is that I have several buttons on my site, and they do not always responed when they are clicked. If I increase the time between timer ticks, the problem with unresponsive buttons goes away, so I supect that the unresponsiveness of the buttons are due to the site being busy with handling the timer tick.

UPDATE: The buttons DO respond to clicks, but with the timer set to 0,8 seconds, they respond very slowly (I guess they are waiting for the timers Tick event to finish).

Is there a way around this? I cannot make the timer tick less frequently, as I need the value from the database to be shown in as "real time" as possible.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
run the timer asyncronously not syncronously or in its own thread and not in the UI thread.
poultarpAuthor Commented:
Problem was solved by moving all code on button click into JQuery/JSON.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
poultarpAuthor Commented:
The problem was resolved with out using the single input from user on site.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.