-3

これは、列が連結されたドロップダウン選択ボックスです。レコードの 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>
4

1 に答える 1