I have a 2 item combo list object in a data entry form. I am trying to get the selected value to bind to a field in a sql database table. I do this by selecting "edit data Bindings" in the Task list appended to the object.
In the right pain of the given window "selectedValue" is selected. In the Bind input bar I type "bind("field_name") and close the window. The following code is rendered but does not work.
CODE
<asp:DropDownList ID="DropDownList2" runat="server"
SelectedValue='<%# Bind("Medicare_A") %>'
style="top: 223px; left: 262px; position: absolute; height: 22px; width: 77px; margin-bottom: 0px;"
AutoPostBack="True" AppendDataBoundItems="True">
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
</asp:DropDownList>
Any ideas on how to bind a selected value from a Combo box to database table field?
Thanks
esmith236@comcast.net