IResourceUrlGenerator.GetResourceUrl Method

Returns a URL reference to an embedded resource in an assembly that is used at design time.

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

string GetResourceUrl (
	Type type,
	string resourceName
String GetResourceUrl (
	Type type, 
	String resourceName
function GetResourceUrl (
	type : Type, 
	resourceName : String
) : String
Not applicable.



The type in the assembly that contains the embedded resource.


The name of the resource to retrieve.

Return Value

The URL reference to the resource.

At run time, the GetWebResourceUrl method returns a URL to a resource. The AssemblyResourceLoader class defines the HTTP handler that is used to load embedded resources.

At design time, the GetWebResourceUrl method of the ClientScriptManager class detects design mode and delegates to the designer-host service implementation, which returns a URL.

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