ConnectionSpeed Property (.NET)

 

Type: Integer

 

Returns the visitor’s download connection speed throughput in bits per second. For upload speed see the UploadConnectionSpeed property.

 

Important: You can choose either the "Progressive" or "Original" method of testing the connection speed. The Progressive method is recommended, but requires some basic setup before first time use and may result in increased fees from your hosting provider due to the bandwidth the test uses. Therefore the Original method of testing is the default. See Progressive Versus Original Speed Tests for more information.

 

Note: Use of this property requires the Professional or Enterprise Edition of BrowserHawk.

 

Note: If you want to use the Progressive method of testing, you must set the SpeedCheckType property to indicate you wish to use the Progressive testing method, set the SupportFilesRoot property as required by the Progressive testing method, copy the speed test image files to your server as explained in the Progressive testing section, and call the GetExtendedBrowser method before checking the value of this property.

 

Tip: See the speed.aspx for a working example of the connection speed test using the Progressive method, or the speed-orig.aspx for the Original method.

 

C# Example:

<%

ExtendedOptions options = new ExtendedOptions();

options.AddProperties("ConnectionSpeed");

options.PageMessage = "Please wait while your connection speed is tested…";

//  The following comments apply only if performing a Progressive speed check (defaults to "Original" speed check)

//     (Progressive method is recommended for best accuracy and testing control):

//     Note that image files are required to be placed on your website prior to use. See Progressive Speed Check topic.

//     options.SpeedCheckType = ExtendedOptions.SPEED_CHECK_TYPE_PROGRESSIVE;

//     options.SupportFilesRoot = "url where you placed speed test image files";

 

ExtendedBrowserObj extBrow = BrowserObj.GetExtendedBrowser(options);

%>

<html>

  Your download connection speed in bits per second is: <% Response.Write(extBrow.ConnectionSpeed); %> <br>

  Your download connection speed for nicely formatted display purposes is: <% Response.Write(extBrow.Translate("ConnectionSpeed")); %> <p>

</html>

 

 

Special notes for this property:

 

See Also:

ConnectionLatency Property (.NET)

Detecting Connection Speed and Dialup Users

Progressive Versus Original Speed Test

GetDownloadTimeSec Method

GetDownloadTimeDesc Method

Detecting Upload Speeds