ASP.NET Intrinsic Server Controls

only for RuBoard

Button

Table A.1. Button Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
CausesValidation Get and Set Gets or sets a value indicating whether validation is performed when the Button control is clicked.
ClientID Get Gets the server control identifier generated by ASP.NET.
CommandArgument Get and Set Gets or sets an optional parameter passed to the Command event along with the associated CommandName .
CommandName Get and Set Gets or sets the command name associated with the Button control that is passed to the Command event.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text caption displayed in the Button control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.2. Button Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes

Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control.

This method is primarily used by control developers.

DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.3. Button Public Instance Events
Event Description
Click Occurs when the Button is clicked.
Command Occurs when the Button is clicked.
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested .
Init Occurs when the server control is initialized , which is the first step in the lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

CheckBox

Table A.4. CheckBox Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key ( AccessKey ) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
AutoPostBack Get and Set Gets or sets a value indicating whether the CheckBox state automatically posts back to the server when clicked.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
Checked Get and Set Gets or sets a value indicating whether the CheckBox control is checked.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the control should maintain its view state, and the view state of any child control it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text label associated with the CheckBox .
TextAlign Get and Set Gets or sets the alignment of the text label associated with the CheckBox control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.5. CheckBox Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.6. CheckBox Public Instance Events
Event Description
CheckedChanged Occurs when the Checked property is changed.
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the control is unloaded from memory.

DropDownList

Table A.7. DropDownList Properties
Property Get/Set Description
AccessKeys Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
AutoPostBack Get and Set Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Overridden. Gets or sets the border color of the control.
BorderStyle Get and Set Overridden. Gets or sets the border style of the control.
BorderWidth Get and Set Overridden. Gets or sets the border width for the control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
DataMember Get and Set Gets or sets the specific table in the DataSource to bind to the control.
DataSource Get and Set Gets or sets the data source that populates the items of the list control.
DataTextField Get and Set Gets or sets the field of the data source that provides the text content of the list items.
DataTextFormatString Get and Set Gets or sets the formatting string used to control how data bound to the list control is displayed.
DataValueField Get and Set Gets or sets the field of the data source that provides the value of each list item.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
Items Get Gets the collection of items in the list control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
SelectedIndex Get and Set Overridden. Gets or sets the index of the selected item in the DropDownList control.
SelectedItem Get Gets the selected item with the lowest index in the list control.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Overridden. Gets or sets the ToolTip text displayed when the mouse pointer rests over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.8. DropDownList Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.9. DropDownList Public Instance Events
Event Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
SelectedIndexChanged Occurs when the selection on the list changes and is posted back to the server.
Unload Occurs when the server control is unloaded from memory.

HyperLink

Table A.10. HyperLink Properties
Property Get/Set Description
AccessKeys Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
ImageUrl Get and Set Gets or sets the path to an image to display for the HyperLink control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
NavigateUrl Get and Set Gets or sets the URL to link to when the HyperLink control is clicked.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
Target Get and Set Gets or sets the target window or frame to display the Web page content linked to when the HyperLink control is clicked.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text caption for the HyperLink control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.11. HyperLink Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.12. HyperLink Public Instance Events
Events Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in the its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

Image

Table A.13. Image Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
AlternateText Get and Set Gets or sets the alternate text displayed in the Image control when the image is unavailable. Browsers that support the ToolTips feature display this text as a ToolTip.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
ClientID Get Gets or sets the background color of the Web control.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Overridden. Gets the font properties for the alternate text.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
ImageAlign Get and Set Gets or sets the alignment of the Image control in relation to other elements on the Web page.
ImageUrl Get and Set Gets or sets the location of an image to display in the Image control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.14. Image Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.15. Image Public Instance Events
Event Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

ImageButton

Table A.16. ImageButton Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
AlternateText Get and Set Gets or sets the alternate text displayed in the Image control when the image is unavailable. Browsers that support the ToolTips feature display this text as a ToolTip.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
CausesValidation Get and Set Gets or sets a value indicating whether validation is performed when the ImageButton control is clicked.
ClientID Get Gets the server control identifier generated by ASP.NET.
CommandArgument Get and Set Gets or sets an optional argument that provides additional information about the CommandName property.
CommandName Get and Set Gets or sets the command name associated with the ImageButton control.
Controls Get Gets a ControlsCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Overridden. Gets the font properties for the alternate text.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
ImageAlign Get and Set Gets or sets the alignment of the Image control in relation to other elements on the Web page.
ImageUrl Get and Set Gets or sets the location of an image to display in the Image control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.17. ImageButton Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.18. ImageButton Public Instance Events
Event Description
Click Occurs when the ImageButton is clicked.
Command Occurs when the ImageButton is clicked.
DataBinding Occurs when the server control binds to a data source.
Dispose Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

Label

Table A.19. Label Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text content of the Label control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.20. Label Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.21. Label Public Instance Events
Event Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

LinkButton

Table A.22. LinkButton Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
CausesValidation Get and Set Gets or sets a value indicating whether validation is performed when the LinkButton control is clicked.
ClientID Get Gets the server control identifier generated by ASP.NET.
CommandArgument Get and Set Gets or sets an optional argument passed to the Command event handler along with the associated CommandName property.
CommandName Get and Set Gets or sets the command name associated with the LinkButton control. This value is passed to the Command event handler along with the CommandArgument property.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text caption displayed on the LinkButton control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.23. LinkButton Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.24. LinkButton Public Instance Events
Event Description
Click Occurs when the LinkButton control is clicked.
Command Occurs when the Button control is clicked.
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

ListBox

Table A.25. ListBox Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control.
AutoPostBack Get and Set Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Overridden. Gets or sets the border color of the control.
BorderStyle Get and Set Overridden. Gets or sets the border style of the control.
BorderWidth Get and Set Overridden. Gets or sets the border width for the control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
DataMember Get and Set Gets or sets the specific table in the DataSource to bind to the control.
DataSource Get and Set Gets or sets the data source that populates the items of the list control.
DataTextField Get and Set Gets or sets the field of the data source that provides the text content of the list items.
DataTextFormatString Get and Set Gets or sets the formatting string used to control how data bound to the list control is displayed.
DataValueField Get and Set Gets or sets the field of the data source that provides the value of each list item.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
Items Get Gets the collection of items in the list control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Rows Get and Set Gets or sets the number of rows displayed in the ListBox control.
SelectedIndex Get and Set Gets or sets the lowest ordinal index of the selected items in the list.
SelectedItem Get and Set Gets the selected item with the lowest index in the list control.
SelectionMode Get and Set Gets or sets the selection mode of the ListBox control.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Overridden. Gets or sets the ToolTip text displayed when the mouse pointer rests over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.26. ListBox Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.27. ListBox Public Instance Events
Events Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
SelectedIndexChanged Occurs when the selection on the list changes and is posted back to the server.
Unload Occurs when the server control is unloaded from memory.

Panel

Table A.28. Panel Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BackImageUrl Get and Set Gets or sets the URL of the background image for the panel control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
HorizontAlign Get and Set Gets or sets the horizontal alignment of the contents within the panel.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Wrap Get and Set Gets or sets a value indicating whether the content wraps within the panel.
Table A.29. Panel Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.30. Panel Public Instance Events
Event Description
DataBinding Occurs when the control binds to a data source. Notifies the control to perform any data binding during this event.
Disposed Occurs when a control is released from memory, the last stage of the control life cycle.
Init Occurs when the control is initialized, the first step in the page life cycle.
Load Occurs when the control is loaded to the Page object. Notifies the control to perform any steps that need to occur on each page request.
PreRender Occurs when the control is about to render.
Unload Occurs when the control is unloaded from memory.

PlaceHolder

Table A.31. PlaceHolder Properties
Property Get/Set Description
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Table A.32. PlaceHolder Public Instance Methods
Method Description
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.33. PlaceHolder Public Instance Events
Event Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

RadioButton

Table A.34. RadioButton Properties
Property Get/Set Description
AccessKeys Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
AutoPostBack Get and Set Gets or sets a value indicating whether the CheckBox state automatically posts back to the server when clicked.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
Checked Get and Set Gets or sets a value indicating whether the CheckBox control is checked.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
GroupName Get and Set Gets or sets the name of the group that the radio button belongs to.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text label associated with the CheckBox .
TextAlign Get and Set Gets or sets the alignment of the text label associated with the CheckBox control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.35. RadioButton Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.36. RadioButton Public Instance Events
Event Description
CheckedChanged Occurs when the Checked property is changed.
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

RadioButtonList

Table A.37. RadioButtonList Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
AutoPostBack Get and Set Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
CellPadding Get and Set Gets or sets the distance (in pixels) between the border and the contents of the table cell .
CellSpacing Get and Set Gets or sets the distance (in pixels) between adjacent table cells .
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
DataMember Get and Set Gets or sets the specific table in the DataSource to bind to the control.
DataSource Get and Set Gets or sets the data source that populates the items of the list control.
DataTextField Get and Set Gets or sets the field of the data source that provides the text content of the list items.
DataTextFormatString Get and Set Gets or sets the formatting string used to control how data bound to the list control is displayed.
DataValueField Get and Set Gets or sets the field of the data source that provides the value of each list item.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
Items Get Gets the collection of items in the list control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
RepeatColumns Get and Set Gets or sets the number of columns to display in the RadioButtonList control.
RepeatDirection Get and Set Gets or sets the direction that the radio buttons within the group are displayed.
RepeatLayout Get and Set Gets or sets the layout of radio buttons within the group.
SelectedIndex Get and Set Gets or sets the lowest ordinal index of the selected items in the list.
SelectedItem Get Gets the selected item with the lowest index in the list control.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
TextAlign Get and Set Gets or sets the text alignment for the radio buttons within the group.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.38. RadioButtonList Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.39. RadioButtonList Public Instance Events
Events Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
SelectedIndexChanged Occurs when the selection on the list changes and is posted back to the server.
Unload Occurs when the server control is unloaded from memory.

Table

Table A.40. Table Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BackImageUrl Get and Set Indicates the URL of the background image to display behind the table. The image will be tiled if it is smaller than the table.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
CellPadding Get and Set Gets or sets the distance (in pixels) between the border and the contents of the table cell.
CellSpacing Get and Set Gets or sets the distance (in pixels) between table cells.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Gridlines Get and Set Gets or sets the gridlines property of the Table class.
Height Get and Set Gets or sets the height of the Web control.
HorizontalAlign Get and Set Gets or sets the horizontal alignment of the table within the page.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Rows Get Gets the collection of rows within the table.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.41. Table Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.42. Table Public Instance Events
Event Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

TableCell

Table A.43. TableCell Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
ClientID Get Gets the server control identifier generated by ASP.NET.
ColumnSpan Get and Set Gets or sets the number of columns in the Table control that the cell spans .
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
HorizontalAlign Get and Set Gets or sets the horizontal alignment of the contents in the cell.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
RowSpan Get and Set Gets or sets the number of rows in the Table control that the cell spans.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text contents of the cell.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
VerticalAlign Get and Set Gets or sets the vertical alignment of the contents in the cell.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Wrap Get and Set Gets or sets a value that indicates whether the content of the cell wrap in the cell.
Table A.44. TableCell Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.45. TableCell Public Instance Events
Events Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

TableRow

Table A.46. TableRow Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
Cells Get Gets a collection of TableCell objects that represent the cells of a row in a Table control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
HorizontalAlign Get and Set Gets or sets the horizontal alignment of the contents in the row.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
VerticalAlign Get and Set Gets or sets the vertical alignment of the contents in the row.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Table A.47. TableRow Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex , and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.48. TableRow Public Instance Events
Events Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
Unload Occurs when the server control is unloaded from memory.

TextBox

Table A.49. TextBox Properties
Property Get/Set Description
AccessKey Get and Set Gets or sets the keyboard shortcut key (AccessKey) for setting focus to the Web control.
Attributes Get Gets the collection of arbitrary attributes (for rendering only) that does not correspond to properties on the control.
AutoPostback Get and Set Gets or sets a value indicating whether an automatic postback to the server will occur whenever the user changes the content of the text box.
BackColor Get and Set Gets or sets the background color of the Web control.
BorderColor Get and Set Gets or sets the border color of the Web control.
BorderStyle Get and Set Gets or sets the border style of the Web control.
BorderWidth Get and Set Gets or sets the border width of the Web control.
ClientID Get Gets the server control identifier generated by ASP.NET.
Columns Get and Set Gets or sets the display width of the text box in characters .
Controls Get Gets a ControlCollection object that represents the child controls for a specified server control in the UI hierarchy.
ControlStyle Get Gets the style of the Web control. This property is primarily used by control developers.
CssClass Get and Set Gets or sets the CSS class rendered by the Web control.
Enabled Get and Set Gets or sets a value indicating whether the Web control is enabled.
EnableViewState Get and Set Gets or sets a value indicating whether the server control maintains its view state, and the view state of any child controls it contains, when the current page request ends.
Font Get Gets font information of the Web control.
ForeColor Get and Set Gets or sets the foreground color (typically the color of the text) of the Web control.
Height Get and Set Gets or sets the height of the Web control.
ID Get and Set Gets or sets the programmatic identifier assigned to the server control.
MaxLength Get and Set Gets or sets the maximum number of characters allowed in the text box.
NamingContainer Get and Set Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value.
Page Get Gets a reference to the Page instance that contains the server control.
Parent Get Gets a reference to the server control's parent control in the page UI hierarchy.
ReadOnly Get and Set Gets or sets a value indicating if the text box is locked from user input.
Rows Get and Set Gets or sets the display height of a multiline text box.
Site Get Gets information about the Web site to which the server control belongs.
Style Get Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web control.
TabIndex Get and Set Gets or sets the tab index of the Web control.
TemplateSourceDirectory Get Gets the virtual directory of the Page or UserControl that contains the current server control.
Text Get and Set Gets or sets the text content of the text box.
TextMode Get and Set Gets or sets the behavior mode of the text box.
ToolTip Get and Set Gets or sets the tool tip for the Web control to be displayed when the mouse cursor is over the control.
UniqueID Get Gets the unique, hierarchically-qualified identifier for the server control.
Visible Get and Set Gets or sets a value that indicates whether a server control is rendered as UI on the page.
Width Get and Set Gets or sets the width of the Web control.
Wrap Get and Set Gets or sets a value indicating whether the text content wraps within the text box.
Table A.50. TextBox Public Instance Methods
Method Description
ApplyStyle Copies any non-blank elements of the specified style to the Web control, overwriting any existing style elements of the control. This method is primarily used by control developers.
CopyBaseAttributes Copies the AccessKey , Enabled , ToolTip , TabIndex and Attributes properties onto the Web control from the specified source control. This method is primarily used by control developers.
DataBind Binds a data source to the invoked server control and all of its child controls.
Dispose Enables a server control to perform final clean up before it is released from memory.
Equals Overloaded. Determines whether two Object instances are equal.
FindControl Overloaded. Searches the current naming container for the specified server control.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType Gets the Type of the current instance.
HasControls Determines if the server control contains any child controls.
MergeStyle Copies any non-blank elements of the specified style to the Web control, but will not overwrite any existing style elements of the control. This method is primarily used by control developers.
RenderBeginTag Renders the HTML begin tag of the control into the specified writer. This method is primarily used by control developers.
RenderControl Outputs server control content to a provided HtmlTextWriter object, then checks if tracing is enabled for the containing page and retrieves trace information about the server control.
RenderEndTag Renders the HTML end tag of the control into the specified writer. This method is primarily used by control developers.
ResolveUrl Resolves a relative URL to the absolute URL where the page or user control associated with this request resides.
SetRenderMethodDelegate Assigns an event handler delegate to render the server control and its content into its parent control.
ToString Returns a String that represents the current Object .
Table A.51. TextBox Public Instance Events
Event Description
DataBinding Occurs when the server control binds to a data source.
Disposed Occurs when a server control is released from memory, which is the last stage of the server control lifecycle when an ASP.NET page is requested.
Init Occurs when the server control is initialized, which is the first step in its lifecycle.
Load Occurs when the server control is loaded into the Page object.
PreRender Occurs when the server control is about to render to its containing Page object.
TextChanged Occurs when the content of the text box is changed upon server postback.
Unload Occurs when the server control is unloaded from memory.
only for RuBoard


Programming Data-Driven Web Applications with ASP. NET
Programming Data-Driven Web Applications with ASP.NET
ISBN: 0672321068
EAN: 2147483647
Year: 2000
Pages: 170

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net