ASP.net Controls
Arun RJ
Facebook Profile
Twitter Profile
www.linkedin.com\arun rj
Disclaimer: This presentation is prepared by trainees ofbaabtra.com as a part of mentoring program. This is notofficial document of baabtra.com – Mentoring Partner
Introduction
• An ASP.NET server control is a tag written in a Web page to represent a programmable server-side object used for displaying a user interface element in a Web page.
• Control is a inbuilt function
• When we are using control that automatically generate html code
• Controls used for designing
• It has
– Property
– Events
– Methods
Standard ControlsButton Controls:
• ASP .Net provides three types of button controls:
Buttons- a button displays text within a rectangular area
Link buttons- a link button displays text that looks like a
hyperlink
Image buttons- an Image Button displays an image.
Text Boxes and Labels:
• Text box controls are typically used to accept input from the
user.
• Ideally Label control is used to place a static, non clickable
(can't fire onclick event) piece of text.
Check Boxes and Radio Buttons:
• A check box displays a single option that the user can either
check or uncheck .
• Radio buttons present a group of options from which the user
can select just one option.
List Controls:
• These control let a user choose from one or more items from
the list.
• List boxes and drop-down list contain one or more list items.
These lists could be loaded either by code or by the ListItem
Collection Editor.
Radio Button list and Check Box
list• A radio button list presents a list of mutually exclusive
options.
• A check box list presents a list of independent options.
• These controls contain a collection of ListItem objects that
could be referred to through the Items property of the control.
Bulleted lists and Numbered lists:
• The bulleted list control creates bulleted lists or numbered
lists.
• These controls contain a collection of ListItem objects that
could be referred to through the Items property of the control.
Data control
• Data bound control
– Grid View
– Repeater
– Data List
Grid View
• The GridView and Details View controls are commonly used
in a Master/Detail page.
• A Master/Detail page is a page that displays a list of items
from a database along with the details of a selected item in the
list
Repeater
• The Repeater control is used to display a repeated list of items
that are bound to the control.
DataList
• The DataList control is, like the Repeater control, used to
display a repeated list of items that are bound to the control.
• However, the DataList control adds a table around the data
items by default.
Validation Control
• Validate input at the client end
– Required field validator
• validate for entering
compulsory
– Range validator
• To validate one condition
Validation Control cotd..
• Compare Validator
• Regular Expression Validator
Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course @ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designedto make a quick, good software professional out of anybody who holds a passion for coding.
Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
Cafit Square,Hilite Business Park,Near Pantheerankavu,Kozhikode
Start up VillageEranakulam,Kerala, India.
Email: [email protected]
Contact Us