NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Checking the Connection Status of an Application

Personal Tier applications can check their connection status using the Connected property on the System.Web.MyWeb class. This is a boolean property that consults the WinInet InternetGetConnectedStateEx API to determine whether or not the user is working offline. In addition to this property, applications can discover the connection name using the System.Web.MyWeb.ConnectionName property. The following sample shows how this facility might be used from a Personal Tier page.

Example

If MyWeb.Connected and MyWeb.ConnectionName = “DSL Connection” Then
   SynchronizeData      
   RenderData
Else
   RenderCachedData
End If

See Also

Personal Tier Applications