ASP.NET webform DropDownLists

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello. I have 2 questions about DropDownList controls in ASP.NET.

1. In Microsoft Access, dropdownlist controls allow the user to type into
the control, and then the control will subsequently accept the user input
solong as it matches a value in the list. Is this possible with ASP.NET ddl
controls? It seems to me like asp.net ddl controls only allow the user to
simply make a selection without letting them type anything.

2. Is there a way I can specify how a ddl control's .DataText field can be
sorted? Basically I have a ddl that displays values from a table, and I want
to be able to present end-users with alphabetically sorted values instead of
the default location of the items from the table.

Thanks
 
Hi. Microsoft Access is basically a windows application. ASP.Net is a
web-application. You can do the same if you use windows forms. In ASP.Net,
your ddl is basically a <select></select> control and would behave as such.
However, you can explore and develop your own custom control which wouild
behave as you wish in ASP.Net. But no, the default ddl control in ASP.Net can
not behave the way you want (at least for now)

if you would like to sort your ddl list, do so on the datasource, before you
bind them. or put them in a data table first and manipulate them before you
bind them onto your ddl.

hope this helps.
 
Back
Top