I have a aspx page that I am building in Visual Studio 2013. I can connect to my database, make edits/inserts to the data. This is not the first time I have used asp.net, but it's been awhile and I have run into a problem adding more than one bound dropdown
to an edititemtemplate.
For this example, I have made a detailsview that is bound to the gridview on the page. Again, all of that works fine.
I have converted two fields to template fields, and then go in to edit the template. If I add one dropdown box, I can use that one dropdown box, no problem. But if I use a dropdown box for another field, then I get the error. "'DropDownList2' has a SelectedValue
which is invalid because it does not exist in the list of items.
Parameter name: value"
It does not seem to matter whether I populate the dropdown via additem, or via a database connection, or have autopostback on/off or if I insert a "placeholder" value for t ...
Go to the complete details ...