posted on Friday, July 04, 2003 7:33 PM
by
Kris
Browser detection ...
The browser detection code in ASP.NET detects recent versions of Netscape as being down-level browsers, so the controls will render HTML 3.2 with all the &%* inline stuff like tags etc.
<browserCaps>
<result type="System.Web.HttpBrowserCapabilities, System.Web,
Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<use var="HTTP_USER_AGENT" />
TagWriter=System.Web.UI.HtmlTextWriter
</browserCaps>
That forces ASP.NET to render HTML 4.0 all the time, regardless of the browser. This can be the best choice but not always. You could write a browsercaps section which detects only Netscape 6.x and/or 7 or Mozilla 1.* and tell it just to use HTML 4.*.