- CSS
- , UpdatePanel
- Set the timer using Javascript on the click button.
Add a button to your page with the id "btnRefresh".
Set the button as a trigger in the update panel.
Add the following Javascript:
function RefreshUpdatePanel() {
__doPostBack('<%= btnRefresh.ClientID %>','');
}
setTimeout('RefreshUpdatePanel()', 10000);
The setTimeout function will call the RefreshUpdatePanel () function every 10 seconds. RefreshUpdatePanel
source
share