HtmlTextWriter.WriteEncodedUrlParameter Method
.NET Framework 2.0
Encodes the specified URL parameter for the requesting device, and then writes it to the output stream.
Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following code example shows how to use the WriteEncodedUrlParameter method, which generates the following output:
ID%3dCity+State
// Assign a value to a string variable // and encode it to a page as a // URL parameter. param = "ID=City State"; writer.WriteBreak(); writer.WriteEncodedUrlParameter(param);
Community Additions
ADD
Show: