System.Web.UI.Control.AppRelativeTemplateSourceDirectory Property

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

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)]
public string AppRelativeTemplateSourceDirectory { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.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 Control.AppRelativeTemplateSourceDirectory property returns "~/subdirectory".

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

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0