I have a data reader to read the datas from database. I am reading TotalPrice from sales table. I would like to show the total price as 2 decimal place.
The code is something link that:
TotalPrice.Text = myReader["TotalPrice"].ToString("N2");
However i encounted this error: no overload for method "ToString" takes 1 arguments What's wrong with the code?
See Question&Answers more detail:os