Net-informations.com
SiteMap  | About    

DropDownList Control



The drop-down list can contain any number of items and allows the user to select a single item from the drop-down list.

dropdownlist-control

A default ListItem can be added to a DropDownList programmatically with the following syntax after binding data to the DropDownList:

VB.Net

C#

The following ASP.NET program add seven days in a week to the DropDownList in the form load event and display the selected item in the button click event.

Default.aspx




Click the following links to see full source code

C# Source Code
VB.NET Source Code
default.aspx.cs
default.aspx.vb





net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.