473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

ASP.NET webform DropDownLists

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
Jul 21 '05 #1
2 1339
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.

"MrMike" wrote:
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

Jul 21 '05 #2
Thank you very much for that valuable information, Alan.

"[Alan Flores]" wrote:
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.

"MrMike" wrote:
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

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: theo | last post by:
Hello..I have a similar issue as yesterday but the situation has slightly changed so perhaps someone can shed some more light on the issue... Program flow - load file,extract xml text tags from...
2
by: R Duke | last post by:
I have tried everything I can think of to change the visible property of a design time created control from a dynamically created control's command event handler. Here is the scenario. I have...
1
by: Chris | last post by:
Hello All, Need some help here. I'm building an asp.net app that uses a datagrid. I have created a template column and added a dropdownlist to it. What I'd like to happen is have the database...
0
by: Steve Caliendo | last post by:
Hi, I'm having trouble with multiple dynamically generated dropdownlists. On my web page I have several text boxes / labels / checkboxes and dropdownlists I have no problem setting the other...
3
by: Jim Bancroft | last post by:
Hi everyone, I'd like to put some DropDownLists in my DataGrid, populating each from a database query. I'm having a little trouble naming them based on the current record in the DataSet. For...
2
by: Jay | last post by:
I'm having a weird problem in ASP.NET 1.1. I have two DropDownLists in a form. Both lists are build identically but separately. Somehow the DropDownLists are getting crossed in memory, because when...
9
by: Timm | last post by:
I have an ASP.NET 2.0 page with two DropDownLists. I am using declarative data binding wherever possible and trying to minimize the use of code. The list of values in DropDownList DDL2 should be...
8
by: MattB | last post by:
I have a asp.net 1.1/vb application that has a page with a bunch of dynamically added User Controls. When I add the controls, I set the UserControl.EnableViewState to true. For all my controls...
0
by: Carlos | last post by:
Hi all, I just embedded a dropdownlist templatefield inside a gridview. When I look at the control in design mode, I see 5 dropdownlists, when I bind the data to the gridview, I only bind to 3...
3
by: RSH | last post by:
Hi, I am having this very bizarre occurance with 4 dropdown lists on my ASP .Net page. Each control has its own unique id. When the user selects a value from each of the dropdownlists it is...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.