asp.net.ph

Skip Navigation Links

Base Web Server Control Properties

ASP.NET Syntax   ASP.NET Syntax for Web Controls


This section describes the properties inherited from the base WebControl class, and apply to all Web server controls except Literal, PlaceHolder, and Xml. The links open to a full description of each attribute, including syntax, valid values, and example usage.

Properties


Property Description
AccessKey Sets or retrieves the keyboard shortcut key for accessing a Web control.
Attributes Returns the collection of attributes applied to a Web control. Also sets or retrieves the individual attribute items in the collection.
BackColor Sets or retrieves the background color of a Web control.
BorderColor Sets or retrieves the border color of a Web control.
BorderStyle Sets or retrieves the border style of a Web control.
BorderWidth Sets or retrieves the border width of a Web control.
CssClass Sets or retrieves the Cascading Style Sheet ( CSS ) class applied to a Web control.
Enabled Sets or retrieves a value indicating whether a Web control is enabled.
Font Sets or retrieves font attributes information for the Web server control.
ForeColor Sets or retrieves the foreground color of the control.
Height Sets or retrieves the physical height of the control.
Style Sets or retrieves the collection of text attributes that are rendered as a CSS style attribute on the outer tag of the control.
TabIndex Sets or retrieves the position of the control in the tabbing order for the current document.
ToolTip Sets or retrieves the text that appears when the user rests the mouse pointer over a control.
Width Sets or retrieves the physical width of the control.

See Also

System.Web.UI.WebControls Namespace



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note