TWebControl is the base class for HTML controls that share a set of common properties defining their outlook. These properties are kept in viewstate and can be restored upon a postback request.
Namespace: System.Web.UI.WebControls
Properties
Enabled, string, default=true, kept in viewstate
Gets or sets a value indicating whether the control is enabled.
Use the Enabled property to specify or determine whether a control is functional.
When set to false, the control may appear dimmed, preventing any input from being entered.
CssClass, string, kept in viewstate
Gets or sets the Cascading Style Sheet (CSS) class rendered by the control on the client.
AccessKey, string, kept in viewstate
Gets or sets the access key (underlined letter) that allows you to quickly
navigate to the control at the client side. AccessKey must only be assigned a one-character string.
TabIndex, integer, default=0, kept in viewstate
Gets or sets the tab index of the control.
When you press the Tab key, the order in which the controls receive focus
is determined by the TabIndex property of each control. The value 0 means the tab index is not set.
ToolTip, string, kept in viewstate
Gets or sets the text displayed when the mouse pointer hovers over the control.
Style, ArrayObject, kept in viewstate
Gets the Cascading Style Sheet (CSS) rendered by the control on the client.
You can modify a single style in code by treating Style as an array
and modifying a key and value.
Width, string, default='', kept in viewstate
Gets or sets the width of the control
Height, string, default='', kept in viewstate
Gets or sets the height of the control
ForeColor, string, kept in viewstate
Gets or sets the foreground color of the control
BackColor, string, kept in viewstate
Gets or sets the background color of the control
BorderWidth, string, default='', kept in viewstate
Gets or sets the border width of the control
BorderColor, string, kept in viewstate
Gets or sets the border color of the control
BorderStyle, string, kept in viewstate
Gets or sets the border style of the control