Hi,
I would like my asp.net web page to work for everybody - not just members of the Microsoft clan
Just a simple thing like defining the width of a textbox (which is no problem with a HTML <input type="text">), is not straightforward. I soon discovered that .net renders HTML 4.0 for IE, but 3.2 for all other browsers. After some research I also found out that the problem could be eliminated by telling .net to render HTML 4.0 to other browsers as well, by adding something like
-------------------------
<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>
--------------------------
to the web.config file.
Unfortunately this causes the nonsence (for me at least) error:
Type 'System.Web.HttpBrowserCapabilities' does not inherit from 'System.Web.Mobile.MobileCapabilities'.
HELP!
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
I would like my asp.net web page to work for everybody - not just members of the Microsoft clan
Just a simple thing like defining the width of a textbox (which is no problem with a HTML <input type="text">), is not straightforward. I soon discovered that .net renders HTML 4.0 for IE, but 3.2 for all other browsers. After some research I also found out that the problem could be eliminated by telling .net to render HTML 4.0 to other browsers as well, by adding something like
-------------------------
<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>
--------------------------
to the web.config file.
Unfortunately this causes the nonsence (for me at least) error:
Type 'System.Web.HttpBrowserCapabilities' does not inherit from 'System.Web.Mobile.MobileCapabilities'.
HELP!
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'