Hi, I have got error "No parameterless constructor defined for this object" when I am trying to update a row of the grid. I have got a ObjectDataSource linked to the grid. Behind the dataset, there is a stored procedure to be used to update the database. I have also set up UpdateParameters in the properties of the objectDataSource. What's the possible problem of that?
Cheers
Daniel
No parameterless constructor defined for this object
Answers
Hi Daniel,
I suggest that you look at the following post, where a similar problem is discussed:
http://forums.asp.net/p/1027043/1407412.aspx#1407412
If this doesn't help, please provide us with a small sample, illustrating the issue, so that we can examine it in every detail.
Thanks,
Vito
Hi I have read the post and could you please explain more? I have attached a sample project and please have a look at it. You can not run it as it is linked to our database. But you may look at the settings. Please have a look the following files:
frmRptStoneScheduleReadyForDelivery.aspx (There is a objectDataSource in this form)
app_code\ClaytonsSupp.dsReadyforDelivery.xsd
sp_Claytons_UpdateStoneForDelivery.txt (This is the script of the stored procedure)
Cheers
Daniel
Hi Daniel,
We've examined the code you posted, but this information doesn't help us determine the exact cause of the problem. This problem seems to be related to your data source (I suppose that the same error will occur when using standard data controls), but we can't tell you what is the exact cause of the problem until we see it in action. Can you please provide us with a complete sample (along with the sample database), illustrating the issue, so that we can examine it in detail?
Thanks,
Vito