HttpBrowserCapabilities---Display browser properties in asp.net

Source: Internet
Author: User
asp.net| Browser | Display attribute Description ActiveXControls Check whether the browser supports ActiveXControls return true,false AOL check whether the browser is AOL return true,false Cookies Check bangs Does the browser support cookies but does not check that the user is enabled to return the name of the True,false Crawler Browser browser, such as "IE" Frames check to see if browsers support frame MajorVersion browser Major version number such as IE5.5 's major version number is 5 MinorVersion browser's pay version number for example IE5.5 version number is 0.5 type browser types such as Ie5,netscape4 VBScript check whether the browser supports VBScript return Tru Full version number of E,false versions browser
Case FILE:
<%@ page language= "VB"%>
<%@ Import namespace= "system.web"%>
<body>

<%
Dim Browserobj as HttpBrowserCapabilities
Browserobj = Request.Browser

' Let's us now list some browser properties
%>
<font face= "Verdana, Arial" size=2>

<p>your Browser supports ActiveX controls: <%=browserobj.activexcontrols%> </p>
<p>your Browser type: <%=browserobj.type%> </p>
<p>your Browser version: <%=browserObj.Version%> </p>

... Add additional properties to display
</font>
</body>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.