To show sub menu in chrome.

If we need to show menu and sub menu in our application then it works fine in IE and Forefox but in chrome  submenu  don't show. like..

A --> D
B
C-- > E
 
To show in chrome we need to write some line of code on page load..

protected void Page_Load(object sender, EventArgs e)

{
   if (!IsPostBack)
   {

       if ((Request.UserAgent.IndexOf("AppleWebKit") > 0) || (Request.UserAgent.IndexOf("Unknown") > 0)
         || (Request.UserAgent.IndexOf("Chrome") > 0))

      {

           Request.Browser.Adapters.Clear();

       }
    }
}

OR

protected void Page_PreInit(object sender, EventArgs e)

{

    if (!IsPostBack)

    {

        if ((Request.UserAgent.IndexOf("AppleWebKit") > 0) || (Request.UserAgent.IndexOf("Unknown") > 0) || (Request.UserAgent.IndexOf("Chrome") > 0))

        {

            Request.Browser.Adapters.Clear();

        }

    }

}