dataset values in a dropdownlist

F

Filip De Backer

hi everyone,

I've got a dropdownlist.
A dataset with 3 fields is boudn tot the dropdownlist.
The ItemID field is bound to datavaluefield
the ItemName field is bound to datatextfield

when I select an item in the dropdownlist I want the third field
(ItemLongName) of the selected row in the dataset shown in a label.

How can I do that?

thansk for the answer,

Filip
 
B

Brock Allen

You'll have to somehow refetch this third value based upon the current values
in the DDL. One way is to always go back to the database and get the third
value. If this DataSet the same data for everyone using your application,
then you could cache the DataSet in the ASP.NET data Cache object. If this
DataSet is per user, then you could store it in Session.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top