Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Problem

Status
Not open for further replies.

tjherman

Programmer
Jun 19, 2006
68
US
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?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top