我在更新面板中有文本框和列表框。我的文本框使用dropdownlistextender启用,其值为某些货币,如USD,MYR,Yen等。但是当我从此列表中选择值时,它不会显示在文本框中。我该怎么办?当它显示在文本框中时,它应该插入到我创建的数据库中。谢谢你。
<asp:TextBox ID="txtCurrency" runat="server"></asp:TextBox>
<asp:DropDownExtender ID="txtCurrency_DropDownExtender" runat="server"
DropDownControlID="ListBox1" DynamicServicePath="" Enabled="True"
TargetControlID="txtCurrency">
</asp:DropDownExtender>
<asp:ListBox ID="ListBox1" runat="server"
onselectedindexchanged="ListBox1_SelectedIndexChanged">
<asp:ListItem Selected="True"></asp:ListItem>
<asp:ListItem>MYR</asp:ListItem>
<asp:ListItem>USD</asp:ListItem>
<asp:ListItem>EURO</asp:ListItem>
<asp:ListItem>POUND</asp:ListItem>
<asp:ListItem>Singapore Dollar</asp:ListItem>
<asp:ListItem>Yuan/Renmibi</asp:ListItem>
<asp:ListItem>Japan Yen</asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:ListBox>