Asp.net 3.5 using code behind
I am using a repeater control. My datasource appears in code behind. I decided to NOT have my listitems populate from the database. I want the user to select a value, send it to the database via an update statement, and then when the user returns to the page (on pageload), have the user's previous selections appear on the screen.
Please note the following:
- When I use textboxes and labels, ALL of my data appears within the table of the repeater control. However, when I replaced one of the text boxes (originally used for testing purposes only) with a dropdownlist, I get the following error message 'ddlDDuring' has a SelectedValue which is invalid because it does not exist in the list of items.Parameter name: value
- My Repeater1_ItemCommandI updates the data within the repeater perfectly.
- On page load, I want the data from the database to display as the dropdownlist's selected value (or selected item.text).
Here is my Asp code
<asp:Repeater ID="Repeater1" runat="server"
View Complete Post