Forum Moderators: open

Message Too Old, No Replies

ASP.Net Panel control

Rendered differently in firefox

         

Red_Eye

1:33 pm on Apr 15, 2005 (gmt 0)

10+ Year Member



I am creating an asp.net web page using the panel web control. In ie they are rendered as div tags in firefox they are rendered as tables why is this?

Is there a way to get them to render the same in all browsers?

Xoc

5:46 pm on Apr 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



First, try messing with the targetSchema property of the page, and setting it to Internet Explorer 3.02 / Netscape Navigator 3.0

If that doesn't work, you may need to modify your machine.config file, located in

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG

There are descriptions of the various browsers in there and their capabilities.

Greg

Jimmy Turnip

8:57 am on Apr 18, 2005 (gmt 0)

10+ Year Member



You don't need to edit your machine.config neccessarily, it can be done using browserCaps in the web.config.

This is the browserCaps I generally use. Just put in the system.web in the web.config. It was taken from another source, but can't remember where:


<browserCaps>
<case match="Gecko/[-\d]+">
browser=Netscape
frames=true
tables=true
cookies=true
javascript=true
javaapplets=true
ecmascriptversion=1.5
w3cdomversion=1.0
css1=true
css2=true
xml=true
tagwriter=System.Web.UI.HtmlTextWriter
<case match="rv:1.0[^\.](?'letters'\w*)">
version=6.0
majorversion=6
minorversion=0
<case match="^b" with="${etters}">
beta=true
</case>
</case>
<case match="rv:1(\.\d+)(\.\d)?(?'letters'\w*)">
version=7.0
majorversion=7
minorversion=0
<case match="^b" with="${letters}">
beta=true
</case>
</case>
</case>
</browserCaps>

Google browserCaps if you wan to learn more.

Red_Eye

9:00 am on Apr 18, 2005 (gmt 0)

10+ Year Member



Thanks for that certainly simpler than editing the machine.config file