Question: everyone. I need a help for this error which is (input string was not in the correct format). I am trying to save the selected
everyone. I need a help for this error which is (input string was not in the correct format). I am trying to save the selected check box changes when click on the button save, and this is my code: C# code
protected void btnSaveLegalEventSelect_Click(object sender, EventArgs e)
{
string[] listDebtorNumber = ((string)Session["legalEvents_debtorNumber"]).Split(',');
string[] listClientCode = ((string)Session["legalEvents_clientCode"]).Split(',');
for (int i = 0; i < listDebtorNumber.Length; i++)
{
SaveRecord(Int32.TryParse(listDebtorNumber[i]), listClientCode[i], eSaveType.single); // error Exception here (input string was not in correct format)
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
