在Asp.net问题中的Combobox

时间:2013-06-12 15:24:33

标签: asp.net combobox

我正在使用EntityFramework,我有一个Customer.A客户可以让其他客户作为References.P.k是CustomerID。 在页面上我有一个FormView,其中包含Name,CustomerID,...和一个引用的字段是Combobox,它绑定到CustomerReference Entity,它具有MasterCustomerID(CustomerID)和ReferenceCustomerID。客户可以有多个引用。 我希望它显示具有多个选定客户的组合框,并且在保存时我将能够将其保存为CustomerReference实体。

<asp:DropDownList runat="server" ID="dd" DataSourceID="ProjectForDropDownDataSource" DataTextField="...." DataValueField="..." SelectedValue='....%>'></asp:DropDownList>

方法是什么。 THX

0 个答案:

没有答案