ServerInfo.GetHtml Method

Displays information about the web server environment.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

public static HtmlString GetHtml()

Return Value

Type: System.Web.HtmlString
A string of name-value pairs that contains information about the web server.

The GetHtml method returns a string that the browser displays as a set of HTML tables. For more information about the content of the tables, see the ServerInfo class overview.

Security noteSecurity Note

Because the ServerInfo class displays important information about your server that includes its operating system, the physical path of website files, and security information, you should remove any references to the ServerInfo class before you publish a web page to a production server.