Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Given a Dataset [oRecs] obtained from an SQL Table (2 colums, [X] and [Y]) and a dropdown list [ddlList] (C# web application [asp.net]).

 

I want the dropdownlust [ddlList] to be populated with the [Y] column results from the Dataset [oRecs].

 

Currently I have the following code:

ddlDevice.DataSource = oRecs;

 

This does not generate any errors but the dropdown list box (when run) does not have any contents. Is there something I need to do? [like specify the column I want to list? how?]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...