Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dropdown List 101
Message
From
18/05/2005 20:03:42
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Dropdown List 101
Environment versions
Environment:
C# 1.1
OS:
Windows 2000 SP4
Database:
MS SQL Server
Miscellaneous
Thread ID:
01015644
Message ID:
01015644
Views:
55
I have the standard scenario:

1. A lookup table, call it "Values". This table has 2 columns: Value_PKey and Value_Desc.

2. A data table, with 3 columns storing foreign Value_PKey values (they will be different).

I'd like to configure dropdown lists to show the current values of the 3 data columns, plus all the other available choices so each may be changed to a different value.

I've gotten to the point where I can either DataBind() to a DataTable to populate the dropdown items, or spin through the DataTable and populate manually with Items.Add(). However, I don't see how to attach a separate DataSet table (or whatever) to this dropdown list.

I'm probably missing something fairly fundamental. Can anyone point me to an online tutorial or code sample(s) that shows how to do this?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Next
Reply
Map
View

Click here to load this message in the networking platform