It's working fine but the error is 'Input string was not in a correct format.'
Can anyone help me here i'll post the error



txtSupplierID.Text while the error message is displayed to see its value
Compile: 641.765ms | Execution: 38.729ms | React with ❌ to remove this embed.
Trim on the string if it contains a space.int.TryParse.txtSupplierID.Text while the error message is displayed to see its value

txtSupplierID.Text in ur visual studio






txtSupplierID.TexttxtSupplierID.TexttxtSupplierID.TextTrimint.TryParseConvert.ToInt32("11942965")11942965