ConnectionType Property

 

Type: String

 

Returns a string indicating the type of network connection the visitor is using. Possible return values are "lan", "modem", "offline" and an empty string if not detectable.

 

The ConnectionType property is limited to IE 5 and higher on Windows. You can test browsers other than IE and generally obtain more accurate results by using the Broadband property instead. See Detecting Connection Speed and Dialup Users for more information.

 

Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.

 

Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.

 

Example:

<% set bhObj = Server.CreateObject("cyScape.browserObj")

bhObj.SetExtProperties "ConnectionType"

bhObj.GetExtPropertiesEx

%>

<html>Your connection type is:

<%

if bhObj.Browser = "IE" and bhObj.majorver >=5 and LCase(left(bhObj.Platform,3)) = "win" then

PropVal = bhObj.ConnectionType

else

PropVal = "Not available with your browser/platform"

end if

response.write PropVal %>

</html>

 

Special notes for this property:

 

See Also:

Broadband Property

ConnectionSpeed Property

GetExtPropertiesEx Method

SetExtProperties Method