0
我有一個連接到objectdatasource的下拉列表。我怎樣才能得到DataValueField = TypeId?我使用onselectedindexchanged來獲得選定的類型,我怎樣才能用TypeId做同樣的事情?Dropdownlist objectdatasource
<asp:DropDownList ID="DropDownList" runat="server"
DataSourceID="ObjectDataSource" DataTextField="Type"
DataValueField="TypeId" AutoPostBack="true"
onselectedindexchanged="DropDownList_SelectedIndexChanged">
</asp:DropDownList>