National Instruments none 用户手册

下载
页码 179
Chapter 2
Measurement Studio .NET Class Libraries
© National Instruments Corporation
2-49
AutoRefresh Control
Use the AutoRefresh control to update a Web control or a group of Web 
controls on the client at a specified interval.
The AutoRefresh control uses the ASP.NET client callback architecture to 
update a control or a group of controls at a specified interval. The 
AutoRefresh control sets up a timer inside the browser using Javascript. 
When the timer elapses, the AutoRefresh updates the controls in the 
AutoRefresh group. For down-level browsers, the controls update when the 
page posts back to the server. If the client browser supports client callbacks, 
the client-side script rendered by the AutoRefresh control uses a client 
callback to update the associated controls on the client without posting the 
page back to the server.
Note
The AutoRefresh control is designed to work with the ASP.NET AJAX UpdatePanel 
and Timer controls in Visual Studio 2008.
AutoRefresh Callback
This feature provides a mechanism for updating the 
RefreshManager.Enabled
 and 
AutoRefresh.Interval
 properties 
for 
AutoRefresh
 from within the 
AutoRefresh.Refresh
 callback, 
allowing you to turn off the AutoRefresh or change the Interval during an 
asynchronous HTTP request without causing a postback.