R
renor321
Hello,
I've searched the groups unsuccessfully to the solution to this
problem. I've seen a few others making note of it, but it didn't seem
like there were any solutions.
I have a drop down list in vb.net, and when I do a DataBind on it, I
get an error "The 'SelectedIndex' and 'SelectedValue' attributes are
mutually exclusive." Basically, this doesn't happen all the time-It
happens after certain specific events take place. This seems to happen
only when data is re-binded to the page.
The code where this happens is as follows:
ddlVersionList.DataSource =
dsProductVersionList.Tables("ProductVersionList")
ddlVersionList.DataTextField = "Version"
ddlVersionList.DataValueField =
"PDP__Product_Version_ID"
ddlVersionList.DataBind()
I'm totally lost, since I'm not doing anything with the SelectedIndex
and SelectedValue until after the DataBind. I'm also clearing the drop
down list prior to executing this code.
Any suggestions would be greatly appreciated.
Thanks!
-Dave-
I've searched the groups unsuccessfully to the solution to this
problem. I've seen a few others making note of it, but it didn't seem
like there were any solutions.
I have a drop down list in vb.net, and when I do a DataBind on it, I
get an error "The 'SelectedIndex' and 'SelectedValue' attributes are
mutually exclusive." Basically, this doesn't happen all the time-It
happens after certain specific events take place. This seems to happen
only when data is re-binded to the page.
The code where this happens is as follows:
ddlVersionList.DataSource =
dsProductVersionList.Tables("ProductVersionList")
ddlVersionList.DataTextField = "Version"
ddlVersionList.DataValueField =
"PDP__Product_Version_ID"
ddlVersionList.DataBind()
I'm totally lost, since I'm not doing anything with the SelectedIndex
and SelectedValue until after the DataBind. I'm also clearing the drop
down list prior to executing this code.
Any suggestions would be greatly appreciated.
Thanks!
-Dave-