Hi,
Let's say, if I want to set Math.random(); in variable.

'idPartnerProject' model class object, some times it will cotain integer also,
- foreach (var partnerProjecttemp in pageVM.Form5.Projects)
- {
- partnerProjectBL.idPartnerProject = Convert.ToInt32(partnerProjecttemp.idPartnerProject);
- /*if idPartnerProject id existing then update record, not exist add a new record*/
- }

And,
But now error raising, Input string was not in a correct format.
How can I solve this?


Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 5, 2017, 1:00 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 5, 2017, 1:33 AM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Apr 5, 2017, 1:10 AM EDT
Abhilash J ARank #1,243 · 1.4K reputationPosted Apr 5, 2017, 2:36 AM EDT
Asma KhalidRank #160 · 14.7K reputationPosted Apr 5, 2017, 2:39 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Apr 5, 2017, 2:45 AM EDT