ASP.NET - How to remove a dot inside zero - Asked By Daniel on 27-Sep-12 03:51 AM

Hi!I have some dot(.)inside zeros,as shown in the image bellow and I do not want that.Can anyone tell me how can I remove this.
Robbe Morris replied to Daniel on 27-Sep-12 09:01 AM
Are these money amounts images?
Daniel replied to Robbe Morris on 27-Sep-12 10:45 AM
no it not an image.Are coming from database and it is declared as numeric(18,0) and  I am formating it like this:
 ProductsList.Text += string.Format("<div><span style='float:left' class='price'>{0} {1}</span>", dr["ConvertedSymbol"], string.Format("{0:C0}",Convert.ToDecimal(dr["ConvertedPrice"])).Replace("$",""));

Robbe Morris replied to Daniel on 27-Sep-12 10:53 AM
Do a debug.write on the value of ProductsList.Text before it gets sent back to the browser.  It is either your browser's regional settings or your server's CultureInfo settings that are causing this.

Daniel replied to Robbe Morris on 27-Sep-12 12:51 PM
Morris I do not understand what do you mean by cultureInfo and for debug.write (it is the first time I am using this) but there nothing happen after putting it before ProductList.Text like this:
 Debug.Write(ProductsList.Text += string.Format("<div><span style='float:left' class='price'>{0} {1}</span>", dr["ConvertedSymbol"], string.Format("{0:C0}",Convert.ToDecimal(dr["ConvertedPrice"])).Replace("$","")));

Robbe Morris replied to Daniel on 27-Sep-12 01:28 PM
Debug.Write(ProductsList.Text)

What shows in your debut output window in visual studio?
Daniel replied to Robbe Morris on 27-Sep-12 04:42 PM
Morris I have tried so many times but nothing is shown in the output window.It is running fine...