Unfortunately, ASP.NET renders div
tag controls as tables in non-IE browsers by default. In order for the
control to render properly in FireFox, you need to add the following
entries to your web.config or machine.config file:<browserCaps>
<case match=”^Mozilla/5\.0\s*([^)]*\))\s*(Gecko\/\d+)\s*Firefox\/


(?’version’(?’major’\d+)(?’minor’\.\d+)(?’letters’\w*)).*”>

type=Firefox/${version}
version=${version}
majorversion=${major}
minorversion=${minor}
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
<filter match=”^b” with=”${letters}”>
beta=true
</filter>
</case>
</browserCaps>
It’s a good idea in general to add these values to the machine.config file on your web server. Why? So things like asp:panel and other “div” based controls will render properly in FireFox.

Buy me a beer

Related posts:

  1. No package “xorg-server” found checking pkg-config is at least version 0.9.0… yes checking for...
  2. Failed to access IIS metabase error solution select start -> run write “cmd” and press enter write...