Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > dataset values in a dropdownlist

Reply
Thread Tools

dataset values in a dropdownlist

 
 
Filip De Backer
Guest
Posts: n/a
 
      04-12-2005
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
 
Reply With Quote
 
 
 
 
Brock Allen
Guest
Posts: n/a
 
      04-12-2005
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.

-Brock
DevelopMentor
http://staff.develop.com/ballen



> 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
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert DropDownList values to enum values Andy B. ASP .Net 2 06-08-2009 07:05 PM
DataSet and dataSet JimO ASP .Net 2 03-08-2006 02:39 PM
Won't update dataset with new dropdownlist values Geoff ASP .Net 2 09-22-2004 04:39 PM
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset Nedu N ASP .Net 1 10-31-2003 02:39 AM
DataSet to DataSet Joseph D. DeJohn ASP .Net 1 08-04-2003 03:25 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57