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