How To Get ASP.NET Menu Control Through The Browser?



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 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...