IUrlResolutionService Interface

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Defines a service implemented by objects to resolve relative URLs based on contextual information.

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

public interface IUrlResolutionService

NameDescription
System_CAPS_pubmethodResolveClientUrl(String)

Returns a resolved URL that is suitable for use by the client.

This interface defines the service that is used to resolve URL paths. The IUrlResolutionService interface is used for resolving relative paths and paths that contain the ~ operator. Server controls that reference resources can define the paths to the resources through the ~ operator, which represents the root of the current application. A path containing the ~ operator will not work if passed to the browser. The server control must convert the path to an absolute or relative path before passing it to the browser.

Control implements this interface. A control that derives from Control could override this implementation to provide customized resolution of URLs.

.NET Framework
Available since 2.0
Return to top
Show: