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!

HttpBrowserCapabilities.MajorVersion

Returns the major version number of the client browser; for example: 3.

[Visual Basic]
Overridable Public ReadOnly Property MajorVersion As Integer
[C#]
public int MajorVersion {virtual get;}
[C++]
public: __property virtual int get_MajorVersion();
[JScript]
public function get MajorVersion() : int;

Example [Visual Basic]

[Visual Basic]

<%
' This example adds the values of the browser major version and browser 
' minor version and sends the result to the Http output.
Dim fVersion
With Request.Browser
   fVersion = .MajorVersion + .MinorVersion
   Response.Write "Browser is version " & fVersion & "<br>"
End With
%>

See Also

HttpBrowserCapabilities Class | HttpBrowserCapabilities Members | System.Web Namespace