Hi,
I am facing an major issue in my calendar POC.
I was just concenrated on creating an event and saving them until yesterday. Today, when I tried to update an existing event, I found the following issue:
If I create a new event and save it. Again open the same event and edit, it will save properly.
After I create an event, reload the calendar and edit the existing event then it is not saving properly. please find more details below:
I am using the following method to save the event
public ContentResult Save(Event changedEvent, FormCollection actionValues)
{
var action = new DataAction(actionValues);
…
…
}
When edit the event after reloading the calendar and save it, it is throwing error as “Input String was not in correct format”. I started analysing this issue and I found that the error is coming at conversion of actionvalues to dataaction i.e. 1st line of my save method. On further analysis, I found that this because of value in actionValues[“Id”] i.e. “3,1337455335030”. I surprised by seeing two values in ID field. For testing purpose, I have taken as actionValues[“Id”] = actionValues[“Id”][0].ToString(); and then dataaction conversion is worked properly and event is saving to the data base.
Please let me know how should I solve this. it would be great help ful if you let me know the solution at the earliest.
Regards,
Kamal