日期:2014-06-02 浏览次数:22693 次
代码十分的简单:
string agent = System.Web.HttpContext.Current.Request.ServerVariables["HTTP_USER_AGENT"];
if (agent == null) { Response.Write("Other"); } else { Response.Write(agent); }