Trying to update gridview in updatepanel using jquery every n seconds
I would like to update the following gridview every 5 seconds. I thought I could use javascript to call the postback, which runs, but never hits the code behind. I tried mapping this to a button and calling the .click event, but that did not work either. I think I am close -- can someone nudge me along?
Right, but are you sending form data out with any sort of submit button on that page? If you only want the already bound data to be refreshed, rather than sent, then meta refresh will do that for you in one line of code. It sounds to me like these bound fields are only retrieving what is in a database. So if you are not sending info from that page, and just want to request and display info from a DB at a set interval, then meta refresh will do exactly that.
I see what you are saying...
Yes, there are other functions on this page that the user submits. I did not include the entire markup for the page in this post.
I have another button on the page that submits form data to the server.
Did that answer your question?
So, I do not think meta refresh on the whole page will work.
- J
jsmithr
ASKER
I found this article that uses and asp.net timer control. I have not tried to implement this, but will post my results when I do: