Posted on: 12/31/2013 3:24:39 PM | Views : 861

Hi,
I am using asp.net 4.5 model binding. In my aspx, I am using a formview to insert a new record. The update works (EditTemplate) but the Insert is now. When I used Update model, it throws an exception, "The model of type 'XXXXXXX' could not be updated" and the innerException is null. When I use TryUpdateModel, it return false and the Model.State is invalid. I checked the Model.State value node and it says 1 field is required. I verified that the field is populated but the error keeps coming up.
How can I figure out why it is failing esp on what field?
Any help is appreciated.
 
 
 
 
        public void fvSubmitterDetails_InsertItem()         {             RESPONSE_CASE_OBJECTION item = new RESPONSE_CASE_OBJECTION();       ...

Go to the complete details ...