Toolbox is an area where all the controls existed. It helps the
developer to develop any application very quickly, only drag the control from
the toolbox and drop it on the form. To change its properties we have to select
the control and make the properties changes from Properties window. We can do
it manually by writing code-behind. There are over 100 controls available in
ASP.NET 4.0. I am listing here all the controls available in ASP.NET 4.0 and
writing some lines on each of them.
Standard Controls
Name explains everything. This section includes list of controls which is widely used.- Pointer: It is just a pointer. If we drag
any other control on form it causes to create that control on form but
pointer does not create any control on form. In other word we can say, we
select it for to ignore any other selected control.
- AdRotator: This control is used to display
the image adds on web page. We can use multiple images and multiple urls.
This control can be controlled by xml or any other database very easily.
Assume that we have an area on web page where we want to display ads of
our four clients then we can use the advantage of this control.
- Bulleted List: This control is used to display
list of items with bullets. We can connect this control to database to
display list items.
- Button: Very widely used control.
Writing some lines about this control is very tinny thing. It is used
everywhere like have to submit form, login, delete, create user, etc.
- Calendar: This control is used to pick the
correct format of date. If we want to pick the date in text box then we
have to write TextBox1.Text=Calendar1.SelectedDate in Selection Changed
event of Calendar.
- Checkbox: This control is used to accept
the data in true/false or say in yes/no Boolean format. Like if we checked
it then it says true or yes. By default its checked property is false but
we can set it to true. Checkbox cannot be bind with database.
- Checkbox List: This control also works as
checkbox as given above but it has some more properties like, it can have
collection of check boxes, and one great advantage, it has database
binding property.
- Dropdown List: This control is used to select
any one item from list of items. We cannot select multiple items from
dropdown list. It has also database binding property.
- File Upload: This
control is used to upload any type of file. After writing some code behind
it only selects specified format of files, like we can set it to select
only jpg and gif files. It provides the user a way to send the file to any
other computer using internet.
- Hidden Field: This control gives the developer
a way to store information without displaying it on the page or say to
user. Mostly it is used to store the states.
- Hyperlinks: This control is used to link any
other page. Like when user clicks on Home page it navigates to home.aspx
page, this is because of hyperlink feature.
- Image: This control is used to display
the image on the form. Like if you open any community website and have
look your image means they have used image control. Using ImageUrl
property we can change the image.
- Image Button: This control look like button
control but it has image. We simply click on image and works like button
control. We can set its image using ImageUrl property.
- Image Map: This control is also known as
hot spot control. We can categories any one in image into multiple
sections or say regions and each section (regions) has different urls.
- Label: This control is mostly used to
display texts con form. Programmatically we can hide/unhide or set the
text for label, and this feature helps the developer to display some
message when any task completed.
- Link Button: This controls works like
hyperlink button. It is mostly used to post back a form to server.
- List Box: This control is used to select
one or more items from predefined items. It has same properties list as
combo box but combo box can't select multiple items. Change Selection Mode
property to multiple in List Box for multiple selections.
- Literal: This control is used to display text
directly to client browsers. It works as container and we can't apply any
style to it.
- Localize: This control is used to display
localize text anywhere in browser. This control has only two properties
Text and ID. We also can't apply any style to this control.
- Multiview: This control is used to display
different view to different client based on some criteria.
- Panel: This control is very useful because it
works like container of every control. Assume we have very long content
page and wishing to display it in very short area on web page, surely we
can use it by enabling Scrollbars property.
- Placeholder: This control is used to place
new controls dynamically or say at run time. It is simply a place of
control which only results at run time.
- Radio Button: This control is used to accept
the data in true/false or say in yes/no Boolean format. Like if we select
it then it says true or yes. By default its checked property is false but
we can set it to true. Radio Button cannot be bind with database.
- RadioButtonList: This control also works as Radio
Button as given above but it has some more properties like, it can have
collection of radio buttons, and one great advantage that it has database
binding property.
- Substitution: This control is very famous in advertise
or news portals where some area of web page are frequently changes, it is
no mean visitor is refreshing the page or navigating or not.
- Table: This control enables us to
create table on web page. We can create row or columns in table.
- Textbox: This control is used to enter
information for processes. Like if we are wishing to create a web page
where user can enter his username and password, surely take the advantage
of text box here. We can change the Textbox Text Mode property by Single
Line, Multiline or Password.
- View: This control also works as
container of another control on web page. It only works with Multiview
control.
- Wizard: This control is very useful when
we wish to create any form which has multiple steps or say multiple
sections on the same form. It mostly used to collection the user
information.
- Xml: This control is mostly used to display the xml content or to display the result of xsl transformation on the web page.
Data Control
Data Control section includes the controls which mostly let us to connect from external databases. Means in this section we are going introduce about all controls which have ability to leads the databases on web page. There are mainly two types of control we will find here that is Data Source Control and Data Control. For example Data Source Controls includes controls like EntityDataSource, LinqDataSource, ObjectDataSource, SiteMapDataSource, SqlDataSource, XmlDataSource and Data Control includes recent all excluding pointer as listed below.
Data Control section includes the controls which mostly let us to connect from external databases. Means in this section we are going introduce about all controls which have ability to leads the databases on web page. There are mainly two types of control we will find here that is Data Source Control and Data Control. For example Data Source Controls includes controls like EntityDataSource, LinqDataSource, ObjectDataSource, SiteMapDataSource, SqlDataSource, XmlDataSource and Data Control includes recent all excluding pointer as listed below.
- Pointer: It is just a pointer.
If we drag any other control on form it causes to create that control on
form but pointer does not create any control on form. In other word we can
say, we select it for to ignore any other selected control.
- AccessDataSource: This control is used
to connect the Microsoft Access Databases. We can say this control is
derived from SqlDataSource, which has complete connection string like
credentials, path etc. but AccessDataSource has only its MDB database
path.
- Chart: This control is used
to create professional looking data visualization charts. It is mostly
used in windows based applications. We have 35 types of chart in .Net 4.0
with fully 3D support.
- Data
List: This
control is used to list the data from database and it looks like table on
web form. We can select or edit any data Selection or edition of any row
is possible here.
- Data
Pager: This
control is generally used with List View control. As we List View control
is data driven so we have to create List View on web page first and
provide some data to it and now add Data Pager control onto the page to
enhance web page functionality.
- Details
View: This
control is used to display, edit, insert, or delete a single record at a
time from its associated data source; it displays only a single data
record at a time, even if its data source exposes multiple records.
- EntityDataSource: This control is used
to create, read, update, and delete data like other data sources. It works
like editable grids or say form with lots of user controlled techniques
like sorting, filtering etc.
- Form
View: This
control is similar to Details View control, which gives us the ability to
work with a single record from a data source. Main difference between both
controls is that Details View control uses a tabular layout where each
field of the record is displayed as a row. In Form View control we can
create template containing any other control.
- Grid
View: This
control is used to displays data from data source in a table. In table
column represents a field and row represents a record. We can select, edit
or sort the data items here.
- LinqDataSource: This control is used
to connect wide variety of data sources that includes database data,
data-source classes, and in-memory collections. It also let us to specify
database like retrieval tasks like selecting, filtering, grouping, and
ordering against all types of data sources. We also use this control for
updating, deleting, and inserting database tables.
- List
View: This
control is used to display the data from database. It is similar to Grid
View, Repeater and Data List, which also help us to display data. List
view control is template driven control.
- ObjectDataSource: This control is
introduced in ASP.Net 2.0, which helps us to connect with database using
very less coding. In this control we use Type Name property instead of
using Connection String property in another data source controls. It
supports properties such as Select Method, Update Method, Insert Method,
and Delete Method etc.
- Query
Extender: This
control is used to filer data from database without using WHERE clause. As
we know database filtering requires WHERE clause in command.
- Repeater: This control is used
to display a repeated list of items that are bounded to the control. It
may be bound to a database like XML file, or another.
- SiteMapDataSource: This control is used
to retrieve navigation data from a site map provider that is from any data
source using DataSourceID and then passes the data to a control that
displays that data such as the Tree View and Menu controls. This is very
informative for website visitors to find any link in huge list of links.
- SqlDataSource: This control is used to
control or access data located in a relational database, including
different database service providers like Microsoft SQL Server and Oracle
databases, as well as OLE DB and ODBC data sources.
- XmlDataSource: This control is used
to display XML data from XML database. It usually used to display or read
only XML data. User can edit, delete and update XML data using
XmlDataSource control only through some code.

