Encodes the specified URL, and then writes it to the output stream. The URL might include parameters.
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.