We've been using the following line of code in our
VB.NET apps to refresh our Web forms that are pulling real-time data from a SQL database:
Response.AppendHeader("Refresh", "10")
But when this is done the form always flickers. That's the 1st problem.
The second problem is that I have a form that I want to refresh some of the data, but don't want to re-run the whole form because I need to retain the user's last selection on the form. I wanted to just re-run the parts of the code that I wanted updated by using a Timer (System.Timers.Timer), but as I'm sure most of you know that won't work because my web form does not refresh to show the new data. I have a label and a datagrid that I'm trying to refresh this way. Is there any way to make this work?
Any input on either issues is greatly appreciated.