Asp.NET Tutorials
Home > Asp.Net开发 > ASP.NET ComboBox

Hot archives

ASP.NET ComboBox

Published: 16 Feb 2007
By: Muhammad Mosa
The ASP.NET ComboBox is an attempt to try and enhance some of the features of the Normal ASP.NET DropDownList.

Introduction

The ASP.NET ComboBox idea is simple; it is a custom composite control that contains two controls (TextBox, Image). The ComboBox Control inherits directly from System.Web.UI.WebControls.ListControl to inherit all design time capabilities; after all it is a ListControl like all other List Controls such as DropDownList, ListBox, RadioButtonList etc.

ASP.NET ComboBox Control Layout

I've chosen a div to align the ASP.NET ComboBox child controls. The control is rendered as a container div and child controls placed within that container. ASP.NET ComboBox is using the base content rendered by its base class ListControl.

figure 1. ASP.NET ComboBox Layout

Why did I choose ListControl?

The ListControl by default will render

Add by : Huobazi (2007-3-01:03:17)