|
|
|
|
|
|
|
Author Rank :
|
|
|
Page Views :
|
2201
|
|
Downloads :
|
0
|
|
Rating :
|
Rate it
|
|
Level :
|
Beginner
|
|
|
Introduction
Toolbox is very-very important building block of .NET Framework. 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.

1. 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 adds of our four clients then we can use the advantage
of this control.
-
BulletedList: 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 SelectionChanged 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.
-
CheckBoxList: 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.
-
DropDownList: This control is used to select any one item from list of
items. We can not select multiple items from dropdownlist. It has also database
binding property.
- FileUpload: 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.
-
HiddenField: 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.
-
HyperLink: 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.
-
ImageButton: 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.
-
ImageMap: 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.
-
LinkButton: This controls works like hyperlink button. It is mostly
used to post back a form to server.
-
ListBox: 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 SelectionMode property to multiple in ListBox 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.
-
RadioButton: 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. RadioButton
cannot be bind with database.
-
RadioButtonList: This control also works as RadioButton 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
TextMode property by SingleLine, 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.
Note1: Keep visiting to my articles, you will find different articles on
different controls separately in coming days.
Note2: Continue in next part.
HAVE A GREAT CODING!
|
|
Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post
Here.
|
|
|
|
|
Login
to add your contents and source code to this article
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional
consulting company, our consultants are well-known experts in .NET and many of them
are MVPs, authors, and trainers. We specialize in Microsoft .NET development and
utilize Agile Development and Extreme Programming practices to provide fast pace
quick turnaround results. Our software development model is a mix of Agile Development,
traditional SDLC, and Waterfall models.
|
|
Click here to learn more about C# Consulting. |
|
|
|
|
|
|
|
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon.
Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees.
As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
|
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
|
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
|
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
|
|
|
|
|
|
|
|
|
|
|
|
|