views:

5

answers:

1

am getting my data from database. i need to assign decimal value to textbox of repeater.

but it is taken as round value automatically when i.e may 2.25 it takes as 2 only. am getting values into datatable then through dararow like this dr["RCC_Rate"].ToString()

thanks in adv

A: 

I assume you're using C#.

Convert the DataRow column to a decimal then to a string.

One way would be

Convert.ToDecimal(dr["RCC_Rate"]).ToString();
TheGeekYouNeed