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;
[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 %>
HttpBrowserCapabilities Class | HttpBrowserCapabilities Members | System.Web Namespace