Export (0) Print
Expand All

Control.ResolveClientUrl Method

Gets a URL that can be used by the browser.

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

public string ResolveClientUrl (
	string relativeUrl
)
public final String ResolveClientUrl (
	String relativeUrl
)
public final function ResolveClientUrl (
	relativeUrl : String
) : String
Not applicable.

Parameters

relativeUrl

A URL relative to the current page.

Return Value

A fully qualified URL to the specified resource suitable for use on the browser.

Exception typeCondition

ArgumentNullException

relativeUrl is a null reference (Nothing in Visual Basic).

Use the ResolveClientUrl method to return a URL string suitable for use by the client to access resources on the Web server, such as image files, links to additional pages, and so on.

NoteNote:

The URL returned by this method is relative to the folder containing the source file in which the control is instantiated. Controls that inherit this property, such as UserControl and MasterPage, will return a fully qualified URL relative to the control.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft