KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel