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

See Also: IUrlResolutionService Members


public interface IUrlResolutionService


This interface defines the service that is used to resolve URL paths. The System.Web.UI.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.

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


Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0