Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Bertha Ferguson   on Dec 09 In Asp.net Category.

  
Question Answered By: Sophia Campbell   on Dec 09

I have had problems similar in the past.

Tas ... check that the values haven't actually been altered in the actual database. That can happen - if you set it wrong the first time it alters all your values in the database, turning 10.50 into 10.5, etc, so when you do get it right you still have the same problem.

Turning things to strings to display  them sounds like a good idea, I take it we are talking asp.NET and not asp  ..... then you can do what you want with them.


Try

<%# DataBinder.Eval(Container.DataItem, "price", "£{0:N2}")%>

in your aspx/ascx page for the formatting.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How can I prevent data trancation? Or get search suggestion and latest updates.


Tagged: