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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started