Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Control Standard Properties

ASP.NET Control Standard Properties


Web Server Controls Web Server Controls


property

The table below describes the properties inherited from the Control class:

property Description .NET
AppRelativeTemplateSourceDirectory Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. 1.0
BindingContainer Gets the control that contains the data binding of this control. 1.0
ClientID Gets the server control identifier generated by ASP.NET. 1.0
Controls Gets the ControlCollection object that represents the child controls of the specified server control in the UI hierarchy. 1.0
EnableTheming Gets or sets a value that indicates whether a theme applies to this control. 1.0
EnableViewState Gets or sets a value that indicates whether the server control persists its own view state and that of any child controls it contains to the requesting client. 1,0
ID The id assigned to this control. 2.0
NamingContainer Gets a reference to the naming container of the server control, which creates a unique namespace to distinguish server controls that have the same id attribute value. 1.0
Page A reference to the page that contains this control. 1.0
Parent A reference to the parent control of this control. 2.0
Site Gets information about the container of the current control. 2.0
TemplateControl Gets or sets a reference to the template that contains the current control. 1.0
TemplateSourceDirectory Gets the virtual directory of the page or control that contains the current control. 1.0
UniqueID Gets the server control's unique, hierarchically qualified, automatically generated identifier. 1.0
Visible Gets or sets a value that indicates whether the server control is rendered as UI on the page. 1.0

Web Server Controls Web Server Controls