I am trying to display the id and descritption of a document on a dropdown menu list but I don't know how to do it. So far it works fine but shows only reference document.
<asp:DropDownList ID="TrainingDocIDTextBox" runat="server"
DataSourceID="AccessDataSource2" DataTextField="ReferenceDocume开发者_StackOverflownt"
DataValueField="TrainingDocID"
onselectedindexchanged="TrainingDocIDTextBox_SelectedIndexChanged">
</asp:DropDownList>
Thanks!
You can't. But you can work around this by combining ReferenceDocument & TrainingDocID in the query, for example:
Select [TrainingDocID], [TrainingDocID] + ',' + [ReferenceDocument] as [RefrenceDoc] from ...
精彩评论