Author: GrandpaB | Posted on: 7/19/2008 8:12:57 PM | Views : 395

Hello ASP friends,

I have a webpage in its early design. So far it contains a DropDownList and a Label.  The DataSource for the DropDownList returns 3 items, Date, IDc and Course. I want Date to be displayed in the DropDownList.  IDC is a foreign key and will be used as one of 2 parameter to select a record in another table.  I want Course (a text field) to be displayed in the label.  I don't know how to get the Course value to the label.  Here is my code:
<p>
Select a Date:
<asp:DropDownList ID="ddlDate" runat="server" DataSourceID="dsDate" DataTextField="Date"
DataValueField="IDc" DataTextFormatString= Go to the complete details ...