View Single Post
  #3 (permalink)  
Old December 1st, 2005, 03:52 AM
steve35719 steve35719 is offline
Authorized User
 
Join Date: Nov 2005
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure how to do that. I don't really know how to write VB code in the "code behind" file nor do I know where to learn how to write it. If I remove the "'" from:
'Dim selectedValue As String = CType(DetailsView1.FindControl("DropDownList1"), DropDownList).SelectedValue, and try to update the database, I get an error message that says:

"Object reference not set to an instance of an object."

There's something I'm not including in the code behind that's required to write to the database. I just don't know what it is. Too bad it's so complicated to perform what seems like a straightfoward task.
Sorry for the inexperience but I'm trying. Thanks for the help.

Reply With Quote