System.Web.UI.HtmlTextWriter.WriteEncodedUrl Method

Encodes the specified URL, and then writes it to the output stream. The URL might include parameters.

Syntax

public virtual void WriteEncodedUrl (string url)

Parameters

url
The URL string to encode and write to the output stream.

Remarks

The HtmlTextWriter.WriteEncodedUrl(string) method encodes the string in the url parameter in accordance with the specification for URL encoding. The parameters that follow the question mark (?) delimiter are not encoded.

Requirements

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