Control.AppRelativeTemplateSourceDirectory Property

Definition

Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control.

C#
[System.ComponentModel.Browsable(false)]
public string AppRelativeTemplateSourceDirectory { get; set; }

Property Value

The application-relative virtual directory of the page or user control that contains this control.

Attributes

Remarks

The AppRelativeTemplateSourceDirectory property contains the application-relative path to the page or user control that contains the current control. For example, if the Web page resides at http://www.contoso.com/application/subdirectory, the AppRelativeTemplateSourceDirectory property returns "~/subdirectory".

To return the virtual path ("application/subdirectory"), use the TemplateSourceDirectory property.

Applies to

Produit Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1