Version

ResolveUrl(String,Control) Method

The main purpose of this method is to resolve "~" into the applicationPath. This method is not needed for ASP.Net 2.0, since there is already a ResolveUrl method available at the Control level.
Syntax
'Declaration
 
Public Overloads Shared Function ResolveUrl( _
   ByVal url As String, _
   ByVal control As Control _
) As String
public static string ResolveUrl( 
   string url,
   Control control
)

Parameters

url
A relative url, which may or may not contain "~"
control
A reference to a valid control - used to get application specific settings.

Return Value

A relative url with no special characters.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also