WebFormsReferenceManager.GetUserControlPath Method (String, String)
.NET Framework (current version)
Gets the relative URL path for the user control with the specified tag prefix and tag name.
Assembly: System.Design (in System.Design.dll)
Public MustOverride Function GetUserControlPath ( tagPrefix As String, tagName As String ) As String
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.StringA 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
Available since 2.0
Show: