T
TJHerman
I've got two dropdowns which are unbound and which I bind the values of when
I update or insert. My method works on all of my other pages, but for some
reason is not working on this page. When I try to update the record (it's in
a formview), I get an IE message saying "Object must implement IConvertible."
I have the following code in the formview_ItemUpdating event:
******************************
Dim strCompanyName As String =
CType(FormView1.Row.FindControl("dropdownlist1"), DropDownList).SelectedValue
Dim strCN As DropDownList =
CType(FormView1.Row.FindControl("DropDownList2"), DropDownList)
e.NewValues("CompanyName") = strCompanyName
e.NewValues("ComponentNumber") = strCN
******************
Can anyone help me with this?
I update or insert. My method works on all of my other pages, but for some
reason is not working on this page. When I try to update the record (it's in
a formview), I get an IE message saying "Object must implement IConvertible."
I have the following code in the formview_ItemUpdating event:
******************************
Dim strCompanyName As String =
CType(FormView1.Row.FindControl("dropdownlist1"), DropDownList).SelectedValue
Dim strCN As DropDownList =
CType(FormView1.Row.FindControl("DropDownList2"), DropDownList)
e.NewValues("CompanyName") = strCompanyName
e.NewValues("ComponentNumber") = strCN
******************
Can anyone help me with this?