System.Web.UI.Page.Server Property

Gets the Server object, which is an instance of the System.Web.HttpServerUtility class.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public System.Web.HttpServerUtility Server { get; }

Value

a System.Web.HttpServerUtility

Remarks

This property provides access to the frequently used System.Web.HttpServerUtility.HtmlEncode(string) and System.Web.HttpServerUtility.MapPath(string) methods, among others.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0