System.Web.UI.Control.TemplateSourceDirectory Property

Gets the virtual directory of the System.Web.UI.Page or System.Web.UI.UserControl that contains the current server control.

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public virtual string TemplateSourceDirectory { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Control.TemplateSourceDirectory property specifies the 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.TemplateSourceDirectory property returns "application/subdirectory".

To return the application-relative virtual path ("~/subdirectory"), use the Control.AppRelativeTemplateSourceDirectory property.

Requirements

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