Professional Documents
Culture Documents
Label Control:
Usage: It is used to project any static
information on the web form.
Button:
Its usage is to submit the data.
TextBox:
Its usage is used to accept a single line multi
line or password character as the input.
Additional property for the TextBox:
textmode > used to specify the mode in which
the values has to be accepted as a input from
the user.
Maxlength > used to restrict the size of the
input provided by the user
ReadOnly > used to specify the control as a
non-editable control
Required Field Validator
It is used to validate a control if it has been provided with
a value or not
Common Properties for all validation controls
ControlToValidate:Specify the name of the control which
has to be validated
ErrorMsg: Specify the message to be displayed if the
User Name
Repeat Layout ->Table(default)
Items-> Male,female
Gender Male Female Repeat Direction->Horizontal
Qualification Inter
Degree
PG
Login
Group Name:Used to specify the radio button control belongs to a specific group.
Radio Button List Control
Usage: it is used to select a single item from a collection of
radio buttons
Common Properties for all the list controls with single
Selection
SelectedItem.Textreturns the text value of the
value.
SelectedIndex returns the index no of the selected
item.
Repeat Direction used to specify the direction in
Select
Array List
Usage: it is a collection which maintains the
information about a list of values which can be
considered as data source for any standard control.
Syntax to define an array List
dim variable as New ArrayList()
To add the items to the array list variable
Variable.Add(Value)
To bind the arraylist variable as a datasource for any
standard control.
controlName.Datasource = Variable
To bind the data of the data source to the control
ContorlName.DataBind()
Note: when ever the databind method is used on any control
& if that statement is used in the PAGE_LOAD event then it
should be used carefully else the control will not maintain
its state
Check Box Control
Usage: Used to select a single one or more
items.
Property:
Checked: returns true if the checkbox is
selected item.
Items(Index).value returns the value of the
selected item.