.BROWSER - File Extension for ASP.NET Browser Definition

Q

What is BROWSER? BROWSER, short name for ASP.NET Browser Definition, is used as the file extension for ASP.NET Browser Definition files. .BROWSER files are XML files that are used to store browser definitions for ASP.NET applications. See the sample .BROWSER file included below.

✍: FYIcenter.com

A

File Extension: .BROWSER

MIME Type: text/plain

File Content: ASP.NET Browser Definition

.BROWSER files are ASP.NET Browser Definition files, that are used to store browser definitions for ASP.NET applications. Here is a sample .BROWSER ASP.NET Browser Definition file, opera.browser:

<browsers>
  <!-- sample UA "Opera/7.51 (Windows NT 5.1; U) [en]" -->
  <!-- sample UA "Mozilla/4.0 (compatible; MSIE 5.0; 
    Linux 2.4.6-rmk1-np2-embedix armv4l; 240x320) Opera 5.0 [en]" -->
  <browser id="Opera" parentID="Default">
    <identification>
      <userAgent 
match="Opera[ /](?'version'(?'major'\d+)(?'minor'\.\d+)(?'letters'\w*))" />
    </identification>

    <capture>
      <userAgent match=" (?'screenWidth'\d*)x(?'screenHeight'\d*)" />
    </capture>

    <capabilities>
      <capability name="browser"             value="Opera" />
      <capability name="cookies"             value="true" />
      <capability name="css1"              value="true" />
      <capability name="css2"              value="true" />
      <capability name="defaultScreenCharactersHeight"   value="40" />
      <capability name="defaultScreenCharactersWidth"  value="80" />
      <capability name="defaultScreenPixelsHeight"     value="480" />
      <capability name="defaultScreenPixelsWidth"    value="640" />
      <capability name="ecmascriptversion"         value="1.1" />
      <capability name="frames"              value="true" />
      ...
    </capabilities>

    ...
  </browser>

  <gateway id="OperaMobile" parentID="Opera">
    <identification>
      <userAgent match="Linux \S+embedix" />
    </identification>

    <capabilities>
      <capability name="isMobileDevice"         value="true" />
    </capabilities>
  </gateway>

  <browser id="Opera1to3beta" parentID="Opera">
    <identification>
      <capability name="letters" match="^b" />
      <capability name="majorversion" match="[1-3]" />
    </identification>

    <capture>
    </capture>

    <capabilities>
      <capability name="beta"  value="true" />
    </capabilities>
  </browser>
  ...
</browsers>

.BROWSER ASP.NET Browser Definition file sample: Click sample.browser to download.

Since .BROWSER files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.

For for information on how to use .BROWSER ASP.NET Browser Definition files, see links below:

2012-10-24, 14427👍, 0💬