Browser detection

前端 未结 6 1449
春和景丽
春和景丽 2020-11-30 00:35

I need to separate IE and FF browsers from others

it\'s a pseudo-code :

If (CurrentBrowser == IE(6+) or FF(2+) )
{
...
}
else 
{
...
}
6条回答
  •  既然无缘
    2020-11-30 00:47

        private void BindDataBInfo()
        {
            System.Web.HttpBrowserCapabilities browser = Request.Browser;
            Literal1.Text = "";
            foreach (string key in browser.Capabilities.Keys)
            {
                Literal1.Text += "";
            }
            Literal1.Text += "
    " + key + "" + browser[key] + "
    "; browser = null; }

提交回复
热议问题