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 SontakkePosted Apr 5, 2017, 6:45 AM
Asma KhalidPosted Apr 5, 2017, 6:39 AM
Abhilash J APosted Apr 5, 2017, 6:36 AM
Nitin SontakkePosted Apr 5, 2017, 5:33 AM
Abhilash J APosted Apr 5, 2017, 5:10 AM
Nitin SontakkePosted Apr 5, 2017, 5:00 AM