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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!