Is there a way to get the value from a DropDownList into the InsertParameters of a ListView SqlDataSource. I know that Bind() and Eval() don't work even though this works for other elements like TextBox.
For example
throws an error
So is there a way to do this in a similar way that you would for a TextBox?
Failing that, what code would I need to access this value and add it to my ListView data source InsertParameters?
In case you are wondering, I have been searching all day for an answer but as yet have not found anything.
Thanks in advance for any help.
Web Development Manager
For example
Code:
<asp:DropDownList ID="voucher_type_idDropDownList" runat="server" DataSourceID="SqlDataSourceVoucherType" DataTextField="voucher_type_name" DataValueField="voucher_type_id" EnableViewState="true" AppendDataBoundItems="True" SelectedValue='<%# Bind("voucher_type_id")%>'>
<asp:ListItem Selected="True" Value="0" Text="Select Voucher Type"></asp:ListItem>
</asp:DropDownList>
throws an error
So is there a way to do this in a similar way that you would for a TextBox?
Failing that, what code would I need to access this value and add it to my ListView data source InsertParameters?
In case you are wondering, I have been searching all day for an answer but as yet have not found anything.
Thanks in advance for any help.
Web Development Manager