ASP.NET Tutorial
.NET HOME
.NET Intro
.NET vs ASP
.NET Install
.NET Pages
.NET Controls
.NET Events
ASP.NET Forms
.NET Forms
.NET ViewState
asp:TextBox
asp:Button
ASP.NET Binding
Data Binding
ArrayList
Hashtable
SortedList
XML Files
asp:Repeater
asp:DataList
ASP.NET Database
.NET DB Connection
ASP.NET 2.0
2.0 New Features
2.0 Master Pages
2.0 Navigation
References
HTML Controls
Web Controls
Validation Controls
Examples
ASP.NET Examples
Selected Reading
Web Statistics
Web Glossary
Web Hosting
Web Quality
W3Schools Tutorials
W3Schools Forum
Helping W3Schools
|
ASP.NET ListControl Control
Complete Web Control Reference
Definition and Usage
The ListControl control covers all the base functions for list controls.
Controls that inherits from this control include the CheckBoxList, DropDownList,
ListBox, and RadioButtonList classes.
The ListControl class allows you to specify the source of the data to
populate the list control.
Properties
| Property |
Description |
.Net |
| AppendDataBoundItems |
A Boolean value that specifies whether list items are
cleared before data binding |
2.0 |
| AutoPostBack |
Specifies whether the form should be posted immediately
after the index of the selected item has changed or not |
1.0 |
| CausesValidation |
Specifies whether or not a page is validated when an item
in a list control is
clicked |
2.0 |
| DataTextField |
A field in the data source to be displayed in the drop-down
list |
1.0 |
| DataTextFormatString |
Formatting string used to specify how to display list data |
1.0 |
| DataValueField |
A field in the data source that specifies the value of each
selectable item in the drop-down list |
1.0 |
| Items |
A collection of list items in the list |
1.0 |
| runat |
Specifies that the control is a server control. Must
be set to "server" |
1.0 |
| SelectedIndex |
The index number of the selected item in a list |
1.0 |
|
SelectedItem |
The text of the selected item in a list |
1.0 |
|
SelectedValue |
The value of the selected item in a list |
1.0 |
| TagKey |
|
1.0 |
| Text |
The value of the selected item in a list |
2.0 |
| ValidationGroup |
The group of controls that is validated when a Postback
occurs |
2.0 |
| OnSelectedIndexChanged |
The name of the function to be executed when the index of the selected item
has changed |
1.0 |
Complete Web Control Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|
|
Jump to: Top of Page
or HOME or
Printer friendly page
W3Schools provides material for training only. We do not warrant the correctness of its contents.
The risk from using it lies entirely with the user.
While using this site, you agree to have read and accepted our
terms of use and
privacy policy.
Copyright 1999-2008 by Refsnes Data. All Rights Reserved.
|
|
|