I have a value that I have got from gridview. I want to add another value and get a total. I am having trouble getting both to total.
The best I could do was "£10 + £2700 = £10£2700" not £2010 which is not what I wanted.
Here is my code.
The best I could do was "£10 + £2700 = £10£2700" not £2010 which is not what I wanted.
Here is my code.
var total = (Label)gvConfirm.FooterRow.FindControl("lblGrndTotal"); lblSubTotal.Text = total.Text; decimal pack = 10; lblPack.Text = packing; string gtotal = pack + total;