Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.net & Netscape

Status
Not open for further replies.

sunaj

Technical User
Feb 13, 2001
1,474
DK
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=&quot;text&quot;>), 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=&quot;System.Web.HttpBrowserCapabilities, System.Web, Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; />
<use var=&quot;HTTP_USER_AGENT&quot; />
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'
 
Wrong forum - sorry.

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top