我需要将IE和FF浏览器与其他浏览器分开。
这是伪代码:
If (CurrentBrowser == IE(6+) or FF(2+) )
{
...
}
else
{
...
}
在 protected void Page_Load()
事件中(我这么认为)
if ((Request.Browser.Type == "IE") || (Request.Browser.Type == "FF"))
{
WebMsgBox.Show("1111");
}
没有效果 :-/ IE和FF类型是什么?