Wednesday, June 29, 2022

CS0030: Cannot convert type 'string' to 'int' Visual Studio C# asp.net

 invoiceId = (int)(grd_Invoice.DataKeys[e.RowIndex].Value.ToString());


solution

invoiceId = int.parse(grd_Invoice.DataKeys[e.RowIndex].Value.ToString());


No comments:

Post a Comment