<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET WebForms</title><link>https://www.dotnetzone.gr:443/cs/forums/13/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, σε ASP.NET WebForms</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>ASP.NET with FireFox - level 200</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/3058.aspx</link><pubDate>Fri, 24 Jun 2005 03:48:13 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:3058</guid><dc:creator>George J. Capnias</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/3058.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=13&amp;PostID=3058</wfw:commentRss><description>&lt;p&gt;&lt;font face="Georgia" size="2"&gt;Ένα πολύ ενδιαφέρον άρθρο για τις εφραμογές σε ASP.NET και την χρήση τους από το FireFox. Ιδιαίτερη προσοχή πως μπορείτε να κάνετε fine tune πειράζοντας το &amp;lt;browserCaps&amp;gt; και το σχετικό link:&lt;/font&gt;&lt;br /&gt;&lt;br /&gt; &lt;table style="BORDER-RIGHT: 2px ridge; BORDER-TOP: 2px ridge; BORDER-LEFT: 2px ridge; BORDER-BOTTOM: 2px ridge" bordercolor="#cccccc" cellspacing="0" cellpadding="0" width="90%" align="center" border="1"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td&gt; &lt;table cellspacing="0" cellpadding="5" width="100%" bgcolor="#eeeeee" border="0"&gt; &lt;tbody&gt; &lt;tr&gt; &lt;td style="BORDER-RIGHT: #003399 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #003399 1px solid; PADDING-LEFT: 1px; FONT-SIZE: 8pt; PADDING-BOTTOM: 1px; BORDER-LEFT: #003399 1px solid; COLOR: #ffffff; PADDING-TOP: 1px; BORDER-BOTTOM: #003399 1px solid; FONT-FAMILY: Marlett; BACKGROUND-COLOR: #003399" align="middle" width="25"&gt;1&lt;/td&gt; &lt;td style="BORDER-RIGHT: #003399 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #003399 1px solid; PADDING-LEFT: 2px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; PADDING-BOTTOM: 2px; BORDER-LEFT: #003399 1px solid; COLOR: #ffffff; PADDING-TOP: 2px; BORDER-BOTTOM: #003399 1px solid; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #003399" width="100%"&gt;ASP.NET with FireFox - level 200&lt;/td&gt; &lt;td style="BORDER-RIGHT: #003399 2px solid; PADDING-RIGHT: 1px; BORDER-TOP: #003399 2px solid; PADDING-LEFT: 1px; FONT-WEIGHT: bold; FONT-SIZE: 10pt; PADDING-BOTTOM: 1px; BORDER-LEFT: #003399 2px solid; COLOR: #ffffff; PADDING-TOP: 1px; BORDER-BOTTOM: #003399 2px solid; FONT-FAMILY: Marlett; BACKGROUND-COLOR: #ff0000" width="25"&gt;r&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td style="BORDER-RIGHT: 2px groove; BORDER-TOP: 2px groove; FONT-SIZE: 10pt; BORDER-LEFT: 2px groove; BORDER-BOTTOM: 2px groove; FONT-FAMILY: Tahoma; BACKGROUND-COLOR: #ffffff" colspan="3"&gt; &lt;p&gt;I'm a little slow on testing my ASP.NET apps with non-IE browsers, and it's because I used to be in an environment where I was writing internal web applications, and IE 5+ was mandated.&amp;nbsp; That took away headaches, but now I need to have ASP.NET apps that look good and function well in all the major browsers, so right now, that includes FireFox.&amp;nbsp; Although IE still has an overwhelming market share, in my opinion, the Internet savvy are split more evenly in browser usage.&amp;nbsp; There are tons of computers that don't get on the Net very often, and those all have IE, so I think it skews the numbers.&lt;/p&gt; &lt;p&gt;When testing my apps with FireFox, I noticed that ASP.NET was rendering for a down-level browser.&amp;nbsp; This is most likely because when .Net shipped, FireFox wasn't a major player, but now it is, and it supports all the high-level features, so it's necessary to add an entry to the &amp;lt;browserCaps/&amp;gt; section of the web.config.&amp;nbsp; &lt;a target="_blank" title="http://slingfive.com/pages/code/browserCaps/" href="http://slingfive.com/pages/code/browserCaps/"&gt;&lt;u&gt;&lt;font color="#0002ca"&gt;Here&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&amp;nbsp;is a page that can provide an applicable entry to make .Net render up-level to FireFox.&lt;/p&gt; &lt;p&gt;Some of the issues you will run into is that &amp;lt;div/&amp;gt; tags will be rendered as tables, and style percents will not be rendered at all.&amp;nbsp; It will dumb down the page to HTML 2.0.&amp;nbsp; Adding the &amp;lt;browserCaps/&amp;gt; section will cause the HTML rendered to be the same as that rendered to IE.&amp;nbsp; In IE, I use the style: TEXT-ALIGN:cetner to center contents of a div, but in FireFox, that doesn't work (it may be a standard thing, I'm not too sure), but doing &amp;lt;div align=“center“/&amp;gt; fixed the problem in both browsers.&lt;/p&gt; &lt;p&gt;I'm also using the XHTML doctype.&amp;nbsp; If you search newgroups, you'll find a lot of people poo-pooing xhtml as just a worthless fad, but if there is one and only one benefit (I'm sure there are more), it's that my CSS is truly cascading.&amp;nbsp; In HTML 4.0, I have to redeclare classes because the settings don't flow from the parent container to all children.&amp;nbsp; &amp;lt;td/&amp;gt; tags are notorious for this.&lt;br /&gt;&lt;/p&gt; &lt;hr noshade="" size="1" /&gt; This Blog Hosted On: http://www.DotNetJunkies.com/&lt;img height="1" src="http://dotnetjunkies.com/WebLog/jpalermo/aggbug/128326.aspx" width="1" /&gt; &lt;p&gt;&lt;a target="_blank" title="http://dotnetjunkies.com/WebLog/jpalermo/archive/2005/06/22/128326.aspx" href="http://dotnetjunkies.com/WebLog/jpalermo/archive/2005/06/22/128326.aspx"&gt;&lt;u&gt;&lt;font color="#0002ca"&gt;Original Link&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/p&gt; &lt;div class="newsitemfooter"&gt;Yesterday 12:56 | Jeffrey Palermo&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;font face="Georgia" size="2"&gt;George J.&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>