Using timer to update datagrid
In my Page_Load, I am calling a function to fill a datagrid from a SQL table. I added a timer to fire every minute to update the datagrid but the datagrid never gets refreshed. I used the debugger to determine that my code is getting the updated data, but the datagrid is not being updated when I do a databind.
I added a button and in the onclick event, I called the same function as the timer. The button is able to update the datagrid. How can I get the timer to update the datagrid?
|