Version

BrowserTarget Enumeration

Determines the sophistication of HTML that should be rendered.
Syntax
'Declaration
 
Public Enum BrowserTarget 
   Inherits System.Enum
public enum BrowserTarget : System.Enum 
Members
MemberDescription
AutoMakes an automatic determination of what degree of HTML, CSS and Javascript to render, by finding out the browser's type and version.
DownLevelRenders HTML, with absolute minimal CSS and Javascript, that can be seen on down-level user agents. Developers may employ this setting when testing their web applications, to identify what experience end users on down-level user agents will have.
UpLevelRenders HTML with CSS and Javascript, that displays itself best only on up-level user agents supporting dynamic HTML and Javascript.
Remarks

This enumeration lists the possible settings for the level of HTML (downlevel for maximum compatibility with older, less-capable user agents, uplevel for maximum performance and presentation on modern user agents). Values of this enumeration are assigned to the BrowserTarget property on the UltraWebToolbar element.

Troubleshooting an application experiencing the incorrect BrowserTarget for a particular brand, platform and version of a user agent when using the Auto setting can be done by checking the browser's brand, platform and version based on properties available through ASP.NET's HttpBrowserCapabilities class. This information is readable off of the HttpRequest during the Page_Load event, and developers may then manually set the appropriate browser level on BrowserTarget for responses to that individual user agent only.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also