Data Grid
-
Hi All, Can i have c sharp code for a datagrid that updates itself every to 10 seconds on a web page? So that data can be dispalyed as it get updated from a table. Thank you very much Regards
-
Can be done very simply using JS. Just perform the DataGrid's data binding in Page_Load and add this to the page within a script tag:
setInterval("document.forms[0].submit();", 10000);
Clean code is the key to happiness.
-
Can be done very simply using JS. Just perform the DataGrid's data binding in Page_Load and add this to the page within a script tag:
setInterval("document.forms[0].submit();", 10000);
Clean code is the key to happiness.
Hi, Thank for your response.Let me expain it a bit further Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do. The problem is that refreshing evry n seconds has to much impact on my web server. The refresh action should be taken only when something really happens that makes sense Is it possible ?