Introductory steps for ASP Programming (14): Browser & Linking
Source: Internet
Author: User
, Browser capabilities Components
The main function of this component is to extract the version information that identifies the client browser.
The
principle is this: When a client browser sends a page request to the server, it automatically sends a user Agent HTTP header, which is an ASCII string that declares the browser and its version. The browser Capabilities component maps the user agent to the browser indicated in the file Browscap.ini and identifies the client browser through the BrowserType object's properties.
if the object does not find an entry in the Browscap.ini file that matches the title, the default browser properties are used. If the object does not find a match and the default browser setting is not specified in the Browscap.ini file, it sets each property to the string "UNKNOWN".
by default, browscap.ini files are stored in windowssysteminersrv (if 95/98+pws4) or ntsystem32inersrv (if NT) directories, you can edit this text file yourself, To add your own properties or modify the file according to the latest published browser version of the update file.
can draw the conclusion that the Browser capabilities component is to extract the contents of a file and then compare the display. How to apply it exactly?
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