ASP.NET Menu Controls Rendering Issues on Chrome and Safari.



ASP.NET Menu Controls Rendering Issues on Chrome and Safari.There is problem with rendering of ASP.NET Menu controls on Chrome, Safari and IE8. This problem becomes more and more acute if website has no master page, in such an event the code has to be entered in to every page load. For resolving this problem in Safari and Chrome the VB.NET code is here.

If Request.UserAgent.Contains(“AppleWebKit”) Then
Request.Browser.Adapters.Clear()
End If

This code has to be entered on page load event. On Preinit use this code.

[code]
if (Request.UserAgent.Contains("AppleWebKit")) Request.Browser.Adapters.Clear();
[/code]

Sometimes even the ASP.NET menu controls are not working on even IE8. To activate these controls, IE8 has to be run in compatibility mode. But there is another code which would let your IE8 browser emulate IE7. Only solution is to tell IE8 to emulate IE7, by putting this code in between the <head> tags..

<meta http-equiv=”X-UA-Compatible” content=”IE=EmulateIE7″ />

2 thoughts on “ASP.NET Menu Controls Rendering Issues on Chrome and Safari.

  1. The best available control technologies has to be clean and innovative. Experienced scientists and engineers play a huge role inside BACT world.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>