本文介绍了如何打印类似的信息,如phpinfo(),但对于ASP.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在ASP.NET中循环了 Request.ServerVariables 集合,但它并不像 phpinfo()



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

  

<%@ Page Trace =trueLanguage =C#
ContentType =text / htmlResponseEncoding =utf-8%&


I've looped over the Request.ServerVariables collection in ASP.NET, but it's not as comprehensive as phpinfo().

How can I print all that information, including server software, drivers, etc, for ASP.NET?

解决方案

An empty page with this header should do the trick:

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

这篇关于如何打印类似的信息,如phpinfo(),但对于ASP.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 06:37