Search | Contact | Link To Us  

      ASP.NET     

ASP.NET
Dev Environment
Web Forms
Web Controls
  -Label
  -TextBox
  -Button
  -LinkButton
  -ImageButton
  -Hyperlink
  -DropDownList
  -ListBox
  -CheckBox
  -CheckBoxList
  -RadioButtonList
  -RadioButton
  -Image
  -Panel
  -PlaceHolder
  -Calendar
  -AdRotator
  -Table
  -Validation Controls
  -Literal
ADO .NET
Web User Controls
Deployment
XML Web Services
ASP.NET Feedback Form
Resources

Discussions
VB .NET
About



Advertisement


     HomeASP.NET> Web Controls 

Web Controls    

A control is an object that can be drawn on to the Web Form to enable or enhance user interaction with the application. Examples of these controls include the TextBoxes, Buttons, Labels, Radio Buttons etc. All these Web server controls are based on the System.Web.UI.Control class and the class hierarchy is as follows: 

 Object
  Control

Notable properties of the Control objects are summarized in the table below:

PropertyDescription
ClientIDGets the ASP.NET control identifier for the control
ControlsGets a collection of child controls in a control
EnableViewStateGets/Sets whether the control maintains it's state between server round trips
IDGets/Sets the ID for the control
PageGets the page object that contains the control
ParentGets the control parent control
SiteGets the control's Web site
UniqueIDGets the Unique ID for the control
VisibleGets/Sets whether the control is visible or not

The WebControl Class

Web server controls in ASP.NET are not based directly on the Control class but are based on the WebControl class, which is based on the Control class. The class hierarchy for the WebControl class is as follows:

 Object
  Control
   WebControl

Notable properties of the WebControl class are summarized in the table below:

PropertyDescription
AccessKeyGets/Sets the access key for the control
AttributesGets a collection of attributes used to render the control
BackColorGets/Sets the control's background color
BorderColorGets/Sets the controls border color
BorderStyleGets/Sets the control's border style
BorderWidthGets/Sets the control's border width
ControlStyleGets the control's style
CssClassGets/Sets the control's CSS class
EnabledGets/Sets whether the control is enabled
FontGets/Sets the font for the control
ForeColorGets/Sets the control's foreground color
HeightGets/Sets the control's height
StyleGets the HTML style of the control as a collection of text attributes
TabIndexGets/Sets the control's tab index
ToolTipGets/Sets the control's tool tip text
WidthGets/Sets the control's width





  Privacy Policy | Terms of Use | Site Map | Contact

  © 2004-2010 Startvbdotnet.com. All rights reserved.