SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

ASP.NET DropdownList Control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

The ASP.NET dropdown list is a control that allows the user to select a single item from a list of items. The control is rendered as an HTML select control. Each item with the DropdownList control is a HTML option element.

Working example.



Creating the DropDownList Control.

<asp:DropDownList ID="DropDownList1" runat="server">

<asp:ListItem>DELL</asp:ListItem>

<asp:ListItem>HP Computers</asp:ListItem>

<asp:ListItem>SONY</asp:ListItem>

</asp:DropDownList>

The above example will be rendered as HTML with the result below (source).

<select name="ctl00$ContentPlaceHolder1$DropDownList1" id="ctl00_ContentPlaceHolder1_DropDownList1">
 <option value="DELL">DELL</option>
 <option value="HP Computers">HP Computers</option>
 <option value="SONY">SONY</option></select>



ASP.NET ListItem User interface included with Microsoft Visual Studio.
Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces