Académique Documents
Professionnel Documents
Culture Documents
.NET Framework 4
Visual Studio 2008
.NET Framework 3.0
Visual Studio 2005
Different browsers, and different versions of the same browser, support different
features. ASP.NET server controls will automatically determine the browser that
has requested the page and render the appropriate markup for that browser.
However, some control features cannot be rendered on older browsers, so it is a
good idea to look at the output of your pages on as many browser types as you
can to make sure that the pages are presented to all browsers the way you want
them to be.
Note
Browser capabilities indicate whether the browser type in general supports features such as
JavaScript, not whether an individual instance of the browser has these features enabled or
disabled.
ASP.NET stores the default browser definition files in the following folder:
%SystemRoot%\Microsoft.NET\Framework\versionNumber\Config\Browsers
Note
The browser definition files were updated for ASP.NET 4, and the new versions are not
backward compatible with browser definition files that were provided with earlier versions
of ASP.NET For more information, see How to: Upgrade an ASP.NET Web Application to
ASP.NET 4.
You can create additional aliases by defining them in the root Web.config file or
in the application Web.config file. For more information, see clientTarget
Element (ASP.NET Settings Schema).
You can use the properties exposed by the HttpBrowserCapabilities object to determine
whether a browser type supports ECMAScript (JScript, JavaScript). However,
the HttpBrowserCapabilities object does not report whether JavaScript is enabled for a
particular instance of a browser type.
Client Script
Some functionality of ASP.NET server controls depends on being able to run
client script. The client script is automatically generated and sent as part of the
page, if the browser is capable of executing script. Even so, some users might
have turned off script execution in their browsers, and will therefore not be able
to fully use the control's capabilities. For more information, see Client Script in
ASP.NET Web Pages.