hello .. i have a simple problem but couldn't get around it ..
i loaded a record on a database ... with a specific field "amount"
i converted "amount" to double then used .ToString("c") :
(System.Convert.ToDouble(rows[0]["amount"])).ToString("c")
which gave me exactly what i what the amount with "$" infront of it
..
the problem now is converting the amount (with the $ on the beginning back to double type)
i tried System.Convert.ToDouble(amount) but it keeps saying
" Input string was not in a correct format" ..
so the question is how do you remove the formating you added on a string ???
tnx
i loaded a record on a database ... with a specific field "amount"
i converted "amount" to double then used .ToString("c") :
(System.Convert.ToDouble(rows[0]["amount"])).ToString("c")
which gave me exactly what i what the amount with "$" infront of it
..
the problem now is converting the amount (with the $ on the beginning back to double type)
i tried System.Convert.ToDouble(amount) but it keeps saying
" Input string was not in a correct format" ..
so the question is how do you remove the formating you added on a string ???
tnx