If your website is hosted on the Windows hosting platform and you are working with the ASP.NET framework, at times it is crucial to view the ASP.NET menu through the browser. The ASP.NET menu control will not be visible in the browsers like Apple Safari and Google Chrome. It can also be the case that the main menu may be displayed differently and at times the sub menu might not show up.
There is an easy solution to this issue and it will also enhance the efficiency of the ASP.NET platform. All you have to do is copy the code given below and paste it in the page code that is present behind the master page file.
In case you are not using the master page, you will have to add this code to every page.
The code is mentioned below:
____________________________________________
Partial Class Main
Inherits System.Web.UI.MasterPage
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.Event Args) HandlesMe.Load
If Request.UserAgent.IndexOf(“AppleWebKit”) > 0 Then
Request.Browser.Adapters .Clear()
End If
End Sub
End Class
____________________________________________
When the code mentioned above is incorporated, you will be able to access the main menu control in the Google Chrome and Apple Safari browsers, this ensuring higher efficiency of the ASP.NET platform.
- 1 brukere syntes dette svaret var til hjelp