我已经遍历了ASP.NET中的Request.ServerVariables集合,但是它不如phpinfo()全面。

如何为ASP.NET打印所有这些信息,包括服务器软件,驱动程序等?

最佳答案

具有此标题的空白页应该可以解决这个问题:

<%@ Page Trace="true"  Language="C#"
    ContentType="text/html" ResponseEncoding="utf-8" %>

08-05 00:45