現在のすべてのジョブ番号を表示するドロップダウン リストがあります。この番号に相当する「名前」を表示するテキスト ボックスが必要です。ドロップダウン リストは、同じデータベース内の別のテーブルへのクエリに基づいています。ドロップダウン リストは次のとおりです。
<asp:DropDownList ID="dlRef" runat="server" DataSourceID="DataRef" DataTextField="Ref"
DataValueField="Ref" style="z-index: 1; left: 155px; top: 68px; position: absolute;
width: 115px; height: 29px; bottom: 254px;" AutoPostBack="True">
</asp:DropDownList>
私がする必要があるのは、この select Name from ActiveJobs where Ref = dlRef.DataValueField.
これは可能ですか、またはこの情報を表示するために別の構造を使用する必要がありますか?