Guest Sethxian Posted August 16, 2002 Posted August 16, 2002 I was wondering if anyone could tell me if it's possible or post sample code using the ASP.net vb code behind to refresh the datagrid based on a timer like 60 seconds or so. I am developing a chat application that executes queries from SQL and do not want to refresh the whole webpage for annoyance reasons. (Page clicks, status bar refresh, flickering). If this is possible ? Thanks in advance. Quote
*Gurus* Derek Stone Posted August 16, 2002 *Gurus* Posted August 16, 2002 You'd have to add a meta refresh tag to the header of the page, setting its interval to 60 seconds. <meta http-equiv="refresh" content="60;URL="myPage.aspx" /> Quote Posting Guidelines
Guest Sethxian Posted August 19, 2002 Posted August 19, 2002 Thanks, I've tried that and it works, the outstanding issue is that the page flickers and makes the default click sound from IE. I have tried turning on Smart Navigation which is supposed to cancel the flickering and it doesn't seem to work. I tried this on the page directly and then the web.config file. Any ideas on how to resolve this issue if the only way to refresh the data in the grid is to refresh the whole page? Thanks again. Quote
*Gurus* Derek Stone Posted August 19, 2002 *Gurus* Posted August 19, 2002 You could place the DataGrid in an iframe and refresh it instead. I don't recommend this method however. <iframe src="datagrid.html" width="100%" height="200"></iframe> Quote Posting Guidelines
edora Posted August 19, 2003 Posted August 19, 2003 <iframe src="datagrid.html" width="100%" height="200"></iframe> If the code below used in asp.net, what about I am using a refresh button, whreby, when I click on it, it will refreshing the new data that have deleted or added in database. I am using asp.net thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.