Right, here's the deal this time.
I have an edit page using objectdatasource, as demonstrated in the adef tutorial (
Creating a DotNetNuke Module 4).
I get everything showing up in my gridview on the edit page, I can get
to the edit mode of the datagrid and all data shows up. But when I try
to "update" my update function in the controller class throws an
exception (
A critical error has occurred. Exception has been thrown by the target of an invocation.). I found that it actually was my controller class update function that caused this when I ran the site in debug mode.
The update method for the datasource is "updatePersonal"
the function in the controller class is the following:
<DataObjectMethod(DataObjectMethodType.Update)> _
Public Shared Sub updatePersonal(ByVal objInfo As whiteboard_personalInfo)
DataProvider.Instance().updatepersonal(objInfo.namn, objInfo.id, objInfo.foto, objInfo.huvudansvar, objInfo.telefon, objInfo.mail, objInfo.rumsnummer, objInfo.backupperson_id)
End Sub
where the whiteboard_personalinfo is my info class.
any
ideas of why this doesn't work? It seems to be a problem with the
"Dataprovider...." line, since it doesn't thrown an exception if I
comment it. All the values inserted are of the right data type, my
dataprovider.vb file is equivalent to what it looks like in the
tutorial. There has to be something I'm missing here...
All includes
are checked to be as they are in the tutorial. It's either a big error
or something so small that I can't see it
Both the dataprovider and the sqldataprovider seems to be ok. They have
the same order and the same data types as the ones I pass on from the
info class. Can there be some kind of error when grabbing the data from
the info class?
I'd be thankful for any help on this issue.