System.Web.UI.WebControls.DropDownList Class
Information   Base Types   Related Resources

Represents a control that allows the user to select a single item from a drop-down list.

  • Namespace: System.Web.UI.WebControls
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Web.dll

  • System.Web.UI.WebControls.ListControl
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (87)Discussions (1349)MembersRotorChanges
    Articles

    Page: 1234
    .NET Anatomy Part III: Creating the Templated Control
    DotNetJunkies
    This three part article shows, step-by-step, how to use Visual Studio .NET to create templated controls visually, without writing code and then explores the code that is generated as a result. In the final part of this article, Barton turns his attention to the ASP.NET portion of the project, creates the templated control and wraps things up.
    .NET DropDownList Combo
    ASP Alliance
    The .NET dropdown list server side control allows positioning within the list by typing the first characters.This method does not require a trip to the server. This dropdown COMBO gives you a text area to type as many characters as you want to match in the list? It's like the Index in Help. Obviously, you wouldn't want a round trip to the server every time you typed a character so it uses client side script to do the positioning.
    A Dictionary Collection Sorting By Value
    The Code Project
    An article on creating a custom collection like the SortedList that sort entries by value instead of by key
    A DropDownList, EditItemTemplate, using Access, and HttpSessionState...Part 3
    DotNetJunkies
    Here we are at part three of this article! In this part we will be adding one new feature to the code! Instead of making a call to the database to get the data on each request we are going to be saving the <b>DataSet</b> into session state. We will not only be populating the <b>DataGrid</b> and <b>DropDownList</b> controls from this <b>DataSet</b>, but we will also be saving all the edits done by the user. This means that after the <b>DataSet</b> is initially created and put into session state there will be
    A DropDownList, EditItemTemplate, using Access, and HttpSessionState...Part 4
    DotNetJunkies
    In this article I will demonstrate how you can save the changes made to the memory resident <b>DataSet</B>.
    Adding a Default ListItem in a Databound Listbox in ASP.NET
    4Guys from Rolla
    In a previous article I showed how to use databinding to automagically populate an ASP.NET's listbox Web control with just a few lines of code. (If you've not already read the past article, be sure to do so now.) I've received a couple of feedback emails from folks since publishing the article asking how to add a default option to the listbox. That is, they want to add a listitem to the listbox, like: -- Please Choose an Option Below--. In this brief article we'll tackle this topic and more!
    Advanced Data Mapping in .NET
    DotNetJunkies
    In this article, Tin demonstrates 3 automated mechanisms for data mapping: mapping from Database table columns to object properties, mapping from HTML form fields to object properties, mapping from ASP.NET Web controls to object properties.
    Application of the Cache Subsystem for Web Applications
    C#Today
    In this article, Eric Rhea explores two approaches to utilizing the caching system. First, he talks about how to make use of the cache subsystem from the web-form code. Then, he takes a look at exploring how to make use of the cache subsystem in the code behind. While doing this, he seeks three answers: (1) how to improve performance, (2) how to make use of similar techniques in both code areas, and (3) how to cache an object which is indeterminate in length and whose values you do not know in advance, and one which you cannot cache using the web-form directive.
    Ask the DotNetJunkies: Dynamically Populating An ASP.NET ListBox
    DotNetJunkies
    When dynamically populating a list box using listbox.items.add, asp.net generates the same string for the HTML tag OPTION's value and text. In the past, I would put a table key in the value while filling the HTML text with various information. What are methods for splitting the listbox attributes? The .net framework examples do not address this type of dynamic filling of the listbox. Thanks, Ken (your interview on MSDN was great)
    Ask the DotNetJunkies: How do I add a DropDownList to a DataGrid EditItemTemplate?
    DotNetJunkies
    I'm working with a DataGrid. When editing a row, I would like to have one of my fields be a DropDownList. I would much rather be able to bind that DropDownList to a table in a DataSet so when new key/values are setup in the database they flow through to my aspx page without having to fuss with it. Please, example in VB.
    Ask the DotNetJunkies: Performance Impacts of Server Controls
    DotNetJunkies
    If the validation controls or intrinsic controls post the page back to the server, will it not affect the performance of the pages because huge files have to go back and forth from the client to the server?
    Ask the DotNetJunkies: Working with Properties and Data Types
    DotNetJunkies
    How do I change forecolor of Label programmatically? I have tried... lblTest.forecolor="green" but keeping getting "System.String cannot be converted to System.Drawing.Color" error. Any help would be appreciated. This is a good question because it gives me the opportunity to address some of the fundamentals of how the .NET Framework handles data types. In classic ASP a color name and a string didn't seem any different in that they were both string values. In .NET data types are much more important and much
    ASP.NET C# Disable/Enable ListItems
    The Code Project
    This article demonstrates how it is possible to disable/enable individual ListItems in a ASP.NET CheckBoxList Server Control.
    ASP.NET C# Disable/Enable ListItems
    The Code Project
    This article demonstrates how it is possible to disable/enable individual ListItems in a ASP.NET CheckBoxList Server Control.
    ASP.NET Developer's Cookbook Chapter 3: Custom Controls
    The Code Project
    The most common techniques in building custom controls in ASP.NET.
    ASP.NET DropDownList with XML Databinding
    Egg Head Cafe
    I read the MS newsgroups as often as I can, not only to get (hopefully) answers to my own questions, but also to share ideas and get ideas of my own on how to solve programming problems. Recently I answered somebody's post on microsoft.public.dotnet.xml about how to use databinding from an XML file to populate an ASP.NET DropDownList server control.
    ASP.NET Localization Part 1: CultureInfo
    DotNetJunkies
    The .NET Framework provides built-in mechanisms for localizing applications. ASP.NET internally uses Unicode and the String class of the .NET Framework also uses Unicode. The use of Unicode enables you to easily specify different encoding types for the response data sent to the client. While the .NET Framework will not translate your documents from the language they are written in to a different language, the built-in mechanisms will reconfigure output such as DateTime objects to their appropriate format.
    ASP.NET Process Killer
    Egg Head Cafe
    Not long ago, I posted a Code Snippet here to show how to use ASP.NET to kill a running process on a remote webserver. It turns out that System.Diagnostics is uniquely suited to handle stuff like this. In fact, I found it so useful that I've revised the original code to bring all the running processes into an ASP:DropDownList control and DataBind the control from the ArrayList that the processes were stored in.
    Binding a DataGrid to an ADO Recordset
    DotNetJunkies
    Sooner or later you're going to need to bind a control to an ADO Recordset. The most likely reason is that you need to leverage a control written in COM that returns a recordset. As you will see, this is actually a very easy thing to do.
    Binding ASP.NET Controls to Data
    Windows 2000 Magazine
    In Microsoft .NET, Web pages consist mostly of server-side controls that make possible a modern, object-oriented programming style. But can you program the controls to make them sensitive to data sources? And, more important, can you do so automatically, with limited programming effort? Of course programmers would heartily welcome a programming-free method for associating rows of data with controls such as drop-down lists and grids. Data-bound controls are .NET’s solution to the growing demand for automatic binding between data sources and controls.
    Building a Custom Registration and Login Control
    MSDN
    Why wait for ASP.NET Whidbey to add Registration and Authentication controls? Build that functionality into ASP.NET 1.1 with this article.
    Building a DataGrid with Add and Edit Features
    DotNetJunkies
    The DataGrid server control is one of the most widely used controls in ASP.NET-based projects to display data in a table form. When using a mixture of database- and manually-driven DropDownLists, placing them in a DataGrid can be confusing. In this tutorial, I'll focus on resolving this issue using an example of an expense entry and reporting system.
    Building ASP.NET Controls in VB .NET and HTML
    DotNetJunkies
    It is always nice to be able to drag and drop controls on to your Web Forms, but there are times when you need to control the situation a little better. In this how to, I will show you some tricks on how to build ASP.NET controls using Visual Basic .NET (VB .NET) and HTML. I will talk about four different controls: textbox, label, dropdown list, and button.
    Calendar Function
    The Code Project
    Function that returns a calendar in code-behind at run-time not a web-control but similar
    Checking FindByValue For Null in C#
    DotNetJunkies
    This How-To demonstrates how to check use FindByValue with a DropDownList, and react programmatically when the it does not find the specified value.
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com