HttpServerUtilityWrapper::UrlEncode Method (String^)

 

URL-encodes a string and returns the encoded string.

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

public:
virtual String^ UrlEncode(
	String^ s
) override

Parameters

s
Type: System::String^

The text to URL-encode.

Return Value

Type: System::String^

The URL-encoded text.

.NET Framework
Available since 3.5
Return to top
Show: