I have a varchar
value: which takes the following value:
0000151010
from the database
I need this value to show as
151010 (without zeros)
//converting the columns returned to strings.
DBInvoiceModel invoiceRecord = new DBInvoiceModel
{
//here's the value in the string
TranNo = reader[1].ToString()
};
result.Add(invoiceRecord);
I need help suppressing the leading zeros