{"id":1199,"date":"2011-06-07T10:40:49","date_gmt":"2011-06-07T09:40:49","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=1199"},"modified":"2011-06-07T10:40:49","modified_gmt":"2011-06-07T09:40:49","slug":"aspnet-menu-control-not-working-on-google-chrome","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1199","title":{"rendered":"Asp.net menu control not working on Google Chrome"},"content":{"rendered":"<p>To solve this you will need to tell .net the capabilities of the  browser. For .net 2.0 &amp; above  you need to create a new browers file  with the capabilities and upload it to your server.<\/p>\n<ol>\n<li>In VS2008 Solution Explorer <strong>right click<\/strong> your application and <strong>a<\/strong><strong>dd the \u201cASP.Net Folder\u201d<\/strong> <em><strong>App_Browsers<\/strong><\/em> if you don\u2019t already have it.<\/li>\n<li><strong>Add a New \u201cBrowser File\u201d<\/strong> item to this special folder and call it safari.browser (if fixing the problem for Chrome)<\/li>\n<li><strong>Delete all the default stuff<\/strong> VS put in this file and replace it with the following:<br \/>\n<span style=\"color: #0000ff;\">&lt;browsers&gt;<br \/>\n&lt;browser refID=\u201dsafari1plus\u201d&gt;<br \/>\n&lt;controlAdapters&gt;<br \/>\n&lt;<a href=\"http:\/\/forums.asp.net\/void%280%29\">adapter<\/a> controlType=\u201dSystem.Web.UI.WebControls.Menu\u201d adapterType=\u201d&#8221; \/&gt;<br \/>\n&lt;\/controlAdapters&gt;<br \/>\n&lt;\/browser&gt;<br \/>\n&lt;\/browsers&gt; <\/span><\/li>\n<li><strong>Save <\/strong>your file &amp; test locally to see if all is well.<\/li>\n<li>Now  for the annoying bit. Upload the new app_browser folder &amp; file to  your production server, if you have used the \u201ccopy web site\u201d menu option  to upload or sharepoint or frontpage, these will create a new folder  under app_browsers called vti_cnf<\/li>\n<li>Manually <strong>delete the vti_cnf folder<\/strong> under  app_browser on your production server. If you don\u2019t you\u2019ll get \u201cParse  error: Data at the root level is invalid. Line 1, position 1.\u201d in your  new safari.browser file.<\/li>\n<li>Remember to manually delete this vti_cnf folder everytime you make a change to the app_browser folder or contained files.<\/li>\n<\/ol>\n<p>So there you go, how to solve the control rendering problems with Google\u2019s Chrome.<\/p>\n<p>For original post you can visit<\/p>\n<p><a href=\"http:\/\/fabenterprises.wordpress.com\/2009\/03\/21\/aspnet-menu-not-rendering-correctly-in-googles-chrome\/\">http:\/\/fabenterprises.wordpress.com\/2009\/03\/21\/aspnet-menu-not-rendering-correctly-in-googles-chrome\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To solve this you will need to tell .net the capabilities of the browser. For .net 2.0 &amp; above you need to create a new browers file with the capabilities and upload it to your server. In VS2008 Solution Explorer right click your application and add the \u201cASP.Net Folder\u201d App_Browsers if you don\u2019t already have [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,28,114],"tags":[170,124],"class_list":["post-1199","post","type-post","status-publish","format-standard","hentry","category-netfx","category-aspnet-20","category-chrome","tag-aspnet","tag-menu","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1199"}],"version-history":[{"count":2,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1199\/revisions"}],"predecessor-version":[{"id":1202,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1199\/revisions\/1202"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1199"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}