Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UrlPathEncode Method

HttpServerUtilityBase.UrlPathEncode Method

When overridden in a derived class, URL-encodes the path section of a URL string.

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

public virtual string UrlPathEncode(
	string s
)

Parameters

s
Type: System.String

The string to URL-encode.

Return Value

Type: System.String
The URL-encoded text.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft