<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/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>CSS Friendly Control Adapters</title><link>http://forums.asp.net/1018.aspx</link><description>Discuss the CSS Friendly Control Adapters sample project, ask questions, post bugs, etc</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3535571.aspx</link><pubDate>Fri, 27 Nov 2009 08:15:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3535571</guid><dc:creator>Tony1010</dc:creator><author>Tony1010</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3535571.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3535571</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;Did not work for me either...&lt;/p&gt;&lt;p&gt;BR,&lt;/p&gt;&lt;p&gt;Tony&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3415938.aspx</link><pubDate>Mon, 21 Sep 2009 05:05:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3415938</guid><dc:creator>cbspira</dc:creator><author>cbspira</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3415938.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3415938</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the reply, but if you look at my initial post you&amp;#39;ll see that I already tried that method (and added it to the page load of the master page)&lt;/p&gt;
&lt;p&gt;What has been working so far&amp;nbsp;with the &amp;nbsp;VWD server&amp;nbsp;(but I have not fully tested it live on the comercial host, so I did not&amp;nbsp;update this thread) is adding the following to the pre-init of the base page (which I guess would be the equivalent of adding it to the pre-init of the master page if a base page is not used?)&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;    If (Request.UserAgent.IndexOf(&amp;quot;AppleWebKit&amp;quot;) &amp;gt; 0) Or (Request.UserAgent.IndexOf(&amp;quot;Unknown&amp;quot;) &amp;gt; 0) Or (Request.UserAgent.IndexOf(&amp;quot;Chrome&amp;quot;) &amp;gt; 0) Then
      Page.ClientTarget = &amp;quot;uplevel&amp;quot;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;This was cobbled from assorted sources - unfortunately I do not remember where so I can not credit them appropriately...&lt;/p&gt;
&lt;p&gt;Thanks anyway...&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3415591.aspx</link><pubDate>Sun, 20 Sep 2009 18:13:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3415591</guid><dc:creator>danielgindi</dc:creator><author>danielgindi</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3415591.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3415591</wfw:commentRss><description>&lt;p&gt;BTW, if you want to be more accurate and prevent possible Adapter problems of other controls, you can add a code block inside the IF, to search for the specific asp:Menu adapter, and kill it.&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3415589.aspx</link><pubDate>Sun, 20 Sep 2009 18:11:47 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3415589</guid><dc:creator>danielgindi</dc:creator><author>danielgindi</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3415589.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3415589</wfw:commentRss><description>&lt;p&gt;Hi!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I had the same problem, and there&amp;#39;s a simple fix, which I took from here:&lt;/p&gt;&lt;p&gt;&lt;a href="http://dotnetslackers.com/Community/blogs/kaushalparik/archive/2009/02/13/asp-menu-server-control-cross-browser-compatibility-safari-chrome.aspx"&gt;http://dotnetslackers.com/Community/blogs/kaushalparik/archive/2009/02/13/asp-menu-server-control-cross-browser-compatibility-safari-chrome.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;add this:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="c-sharp"&gt;if (Request.UserAgent.IndexOf(&amp;quot;AppleWebKit&amp;quot;) &amp;gt; 0)
{
   Request.Browser.Adapters.Clear();
}&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;to your Page_Init or Page_Load event (in master page if you want),&lt;/p&gt;&lt;p&gt;and this will fix all the problems: the CSS rendering problem, the &amp;quot;rendering only first time&amp;quot; problem, and the not rendering dynamic menus at all problem...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Have fun!&lt;/p&gt;&lt;p&gt;Daniel&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3308801.aspx</link><pubDate>Thu, 23 Jul 2009 02:09:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3308801</guid><dc:creator>cbspira</dc:creator><author>cbspira</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3308801.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3308801</wfw:commentRss><description>&lt;p&gt;Sorry for not replying sooner - I&amp;#39;ve been off-line...&lt;/p&gt;&lt;p&gt;I never did figure it out - for some reason chrome does render it properly on the comercial host (IIS 7, if I&amp;#39;m not mistaken). IE6 does NOT render it at all - the whole menu control does not display (but that was reported to me by mthe customer &amp;nbsp;- I do not have a way to test it out currently, so I don&amp;#39;t know what the generated html really looks like)&lt;/p&gt;&lt;p&gt;FWIW, if you can get it to work, there&amp;#39;s a way to specify a skin to be used if the browser will not support the control adapter (or if you specify for it not to use the adapter). See here:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.asp.net/CSSAdapters/WalkThru/WalkThrough.aspx#SimpleMenu"&gt;http://www.asp.net/CSSAdapters/WalkThru/WalkThrough.aspx#SimpleMenu&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;and here:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.asp.net/CSSAdapters/WhitePaper.aspx#SamplesUsingInYourWebSite"&gt;http://www.asp.net/CSSAdapters/WhitePaper.aspx#SamplesUsingInYourWebSite&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;(although I personally have not gotten the skin to work too well, but that could very well be my lack of knowledge on how to integrate css styles in the skin)&lt;/p&gt;&lt;p&gt;But why does it seem to work for all other browsers that purport to be on a similar level of compliance? And why are we the only ones asking about this? :-)&lt;/p&gt;&lt;p&gt;Good Luck,&lt;/p&gt;&lt;p&gt;CB&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3308674.aspx</link><pubDate>Wed, 22 Jul 2009 23:27:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3308674</guid><dc:creator>pfontyn</dc:creator><author>pfontyn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3308674.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3308674</wfw:commentRss><description>&lt;p&gt;Ok, I&amp;#39;m not 100% sure on this, but it looks as though this is the problem.&lt;/p&gt;
&lt;p&gt;For whatever reason, when a link in the menu is clicked using chrome, it appears as though it generates extra scriptresource and webresource files - which IE then apparently uses. Basically it seems as though all browsers from that point on seem to lose the stylesheet - which leads me to believe that it&amp;#39;s not being rendered properly when the webresource files are compiled.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what chrome would be sending to the server that would cause this - I stripped out the css friendly code, bashed together a some styles for the standard menu control and everything seems to be working properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;P.&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3304846.aspx</link><pubDate>Tue, 21 Jul 2009 00:03:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3304846</guid><dc:creator>pfontyn</dc:creator><author>pfontyn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3304846.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3304846</wfw:commentRss><description>&lt;p&gt;It seems as though when the aspnet_wp (or WebDev.Webserver.exe, depending on config, probably) gets recycled, it re-sets the page so that images will load properly in supported browsers again.&lt;/p&gt;
&lt;p&gt;This doesn&amp;#39;t really clear anything up for me, but it adds a bit of information to the subject.&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3304735.aspx</link><pubDate>Mon, 20 Jul 2009 22:12:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3304735</guid><dc:creator>pfontyn</dc:creator><author>pfontyn</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3304735.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3304735</wfw:commentRss><description>&lt;p&gt;Did you ever find a solution to this problem? I seem to&amp;nbsp;have managed to take it one step further than you - when I browse the website using chrome on the commercial web server, it messes up the menu for clients in other locations using different browsers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m absoloutly stumped with this as it leads me to believe that&amp;nbsp;chrome is somehow writing something to the server.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3263191.aspx</link><pubDate>Mon, 29 Jun 2009 04:37:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3263191</guid><dc:creator>cbspira</dc:creator><author>cbspira</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3263191.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3263191</wfw:commentRss><description>&lt;p&gt;Still have not found the reason for this. However, I did load the pages on my commercial host (as opposed to only testing with the VWD dev server) - and the menu is rendering properly (ie, as an unordered list with the appropriate CSS class applied) in Chrome and FireFox (and IE).&lt;/p&gt;&lt;p&gt;This is making testing a bit cumbersome, but at lease I can go live with this...&lt;/p&gt;&lt;p&gt;If anyone does have any ideas as to why this happened please let me know - I&amp;#39;m afraid that maybe the dev server got corrupted somehow and now I don&amp;#39;t know if I can trust other output...&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;CB&lt;/p&gt;</description></item><item><title>Chrome only renders menu first time</title><link>http://forums.asp.net/thread/3260617.aspx</link><pubDate>Fri, 26 Jun 2009 16:17:15 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3260617</guid><dc:creator>cbspira</dc:creator><author>cbspira</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3260617.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1018&amp;PostID=3260617</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve been searching for this several days - I&amp;#39;m hoping someone out there can help.&lt;/p&gt;&lt;p&gt;I&amp;#39;m using the css friendly menu adapter on a master page. &amp;nbsp;It looks fine on IE7 and Firefox. My problem is with Chrome - it only renders properly the first time the page is loaded after launching the VWD dev server - as soon as I click on a menu item or even just reload the page the menu looks like a poor rendition of the asp:menu control. I&amp;#39;ve even ascertained that something is different because the &amp;quot;view source&amp;quot; for the page is different - the first load it has the menu as expected, with ul and li - and with subsequent loads it is rendered as a table.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;As per my multiple searches, I&amp;#39;ve added the Request.Browser.Adapters.Clear() fix to the page load of the master page. This helped render the asp:menu control to begin with (before this the submenu items would display with the word &amp;quot;Expand&amp;quot; that then had to be clicked)&lt;/p&gt;&lt;p&gt;I also tried using the ClientTarget=&amp;quot;uplevel&amp;quot; fix to the pre-init of a single page (to test it out) &amp;nbsp;- did not appear to make a difference here either.&lt;/p&gt;&lt;p&gt;I&amp;#39;m imagining that if I&amp;#39;m having this problem with Chrome then it&amp;#39;s a problem with Safari as well, so I would like to get this issue resolved...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;CB&lt;/p&gt;</description></item></channel></rss>