Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ViewStateException::IsConnected Property

 

Gets a value indicating whether the client is currently connected to the server.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
property bool IsConnected {
	bool get();
}

Property Value

Type: System::Boolean

true if the client is still connected to the server; otherwise, false.

This property returns the same value as calling the IsClientConnected property.

The following code example demonstrates how to implement a method that deserializes a base64-encoded string and returns an ICollection collection of property settings. The Deserialize method can throw an HttpException exception that contains a ViewStateException object as an inner exception. The example shows how you can catch an HttpException exception and retrieve the properties from the ViewStateException object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft