这是我的带有串联列的下拉选择框。如何检索记录的 ID 并将该值传递给 onchange?
<asp:DropDownList
ID="DropDownList2"
runat="server"
DataSourceID="AccessDataSource1"
DataTextField="Expr1"
DataValueField="Expr1">
</asp:DropDownList>
<asp:AccessDataSource
ID="AccessDataSource1"
runat="server"
DataFile="~/tools/tracker/Tracker.mdb"
SelectCommand="SELECT PAcronym + ' - ' + Milestone + ' (' + PRelease + ')' AS Expr1 FROM Projects ORDER BY PAcronym + ' - ' + Milestone + ' (' + PRelease + ')' ">
</asp:AccessDataSource>