ankitweblogic logo
W e b t u t o r i a l s

ASP.NET Tutorial

Website

ASP.NET Introduction

ASP.NET Web Forms

Standard Controls

Label Control

TextBox Control

Image Control

Button Controls

Redirecting User

Using HyperLinks

RadioButton Control

RadioButtonList

CheckBox Control

CheckBoxList Control

DropDownList

ListBox Control

ImageMap Control

Master Page

View State

Event-Driven Programming

IsPostBack

ASP.NET Page Structure

Visibility of Controls

Formatting Controls

Applying CSS

Dynamic CSS

Using Style Class

Themes and Skins

Panel Control

PlaceHolder Control

AdRotator Control

Calendar Control

Validation Controls

Page Navigation

User Control

Separating Code-Presentation

Overview of ADO.NET

Data Binding

DataBinding List Control

Binding Data to a List Control

List controls include DropDownList, CheckBoxList, RadioButtonList and ListBox control. The data binding technique for these controls is similar and is almost same as for a repeater control. You assign a data source to the control’s DataSource property, and call the control’s DataBind() method. But, list controls have an additional property to be set. This is the DataTextField property.

Example 8: Data Binding List Controls

Output:
Ouput