{"id":443,"date":"2020-02-13T04:53:15","date_gmt":"2020-02-13T04:53:15","guid":{"rendered":"http:\/\/hawktech.us\/site\/?p=443"},"modified":"2020-02-13T04:53:16","modified_gmt":"2020-02-13T04:53:16","slug":"asp-net-menu-control-doesnt-display-properly-in-chrome-safari","status":"publish","type":"post","link":"https:\/\/hawktech.us\/site\/asp-net-menu-control-doesnt-display-properly-in-chrome-safari\/","title":{"rendered":"ASP.NET Menu control doesn&#8217;t display properly in Chrome\/Safari"},"content":{"rendered":"\n<p>There is an issue with the current versions of Chrome and Safari browsers that can cause the ASP.NET menu control to not render properly.&nbsp; If you are interested in understanding the how and why behind this, there is a great forum post <a target=\"_blank\" href=\"http:\/\/forums.asp.net\/p\/1315088\/2713325.aspx\" rel=\"noreferrer noopener\">here<\/a> that describes the issue in more detail.&nbsp; If you are like me and need to resolve the issue now so your site displays properly, here is a quick fix for the problem.<\/p>\n\n\n\n<p>You need to put the following code into the Load event of your page&#8217;s (or master page&#8217;s) code behind file:<\/p>\n\n\n\n<p>If Request.UserAgent.IndexOf(&#8220;AppleWebKit&#8221;) &gt; 0 Then<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Request.Browser.Adapters.Clear()<\/p>\n\n\n\n<p>End If<\/p>\n\n\n\n<p>There may be other solutions to this issue, but this appears to be one of the simpler fixes.&nbsp; Hope this helps!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is an issue with the current versions of Chrome and Safari browsers that can cause the ASP.NET menu control to not render properly.&nbsp; If you are interested in understanding the how and why behind this, there is a great forum post here that describes the issue in more detail.&nbsp; If you are like me&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[95],"tags":[],"class_list":["post-443","post","type-post","status-publish","format-standard","hentry","category-web-development"],"_links":{"self":[{"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":0,"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"wp:attachment":[{"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hawktech.us\/site\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}