WebFormsReferenceManager.GetUserControlPath Method (String, String)

 

Gets the relative URL path for the user control with the specified tag prefix and tag name.

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

public abstract string GetUserControlPath(
	string tagPrefix,
	string tagName
)

Parameters

tagPrefix
Type: System.String

The tag prefix of the user control to retrieve.

tagName
Type: System.String

The tag name of the user control to retrieve.

Return Value

Type: System.String

A string representing the relative URL path for the specified user control, if found; otherwise, null.

GetUserControlPath uses the tag prefix and name to locate the user control register directive in the current document, and returns the src attribute value defined in the register directive.

.NET Framework
Available since 2.0
Return to top
Show: