The role of the. NET App_Browser folder

Source: Internet
Author: User

The optional folder contains the. browser file. The. browser file describes the features and functionality of the browser, whether it is a mobile device browser or a desktop browser. Asp. NET installs a large number of. browser files in the Config\browser folder under the installation path, which are shared by all applications. We just place the current application-specific browser file under the App_Browser folder. The contents of the. browser file are compiled on the fly dynamically to provide the most up-to-date browser information to the ASP.

Let's talk a little about having a custom. browser file may help you with a scenario. Imagine an application that uses a control that cannot be rendered effectively under a browser. When you display a host page in a specified browser, you can write a. browser file that forces ASP. NET to use a different adapter to build the control.

<browsers>

<browser id= "Browserid" >

<controlAdapters>

<adapter controltype= "Samples.customcontrol"

Adaptertype= "Samples.Adapters.CustomControlAdapter"/>

</controlAdapters>

</browser>

</browsers>

Assuming that the Browserid matches one of the standard browsers that ASP. NET recognizes, the. browser file shown above indicates that the Customcontroladapter rendering CustomControl is used under the specified browser.

In addition:IE10 cannot log in. The missing session and other compatibility issues are related to. brower Files

The role of the. NET App_Browser folder

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.