Label [modified]
-
Hi, When i am getting value from data base is 200.00, but when i am displaying it in label then it looks like 200. but i want 200.00 'ItemTemplate amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text) 'Footer CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt) -- modified at 1:44 Saturday 6th October, 2007
kiran banker
-
Hi, When i am getting value from data base is 200.00, but when i am displaying it in label then it looks like 200. but i want 200.00 'ItemTemplate amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text) 'Footer CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt) -- modified at 1:44 Saturday 6th October, 2007
kiran banker
post your code
please don't forget to vote on the post that helped you.
-
Hi, When i am getting value from data base is 200.00, but when i am displaying it in label then it looks like 200. but i want 200.00 'ItemTemplate amnt = amnt + CDbl(CType(e.Row.FindControl("lblAmount"), Label).Text) 'Footer CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt) -- modified at 1:44 Saturday 6th October, 2007
kiran banker
banker_kiran wrote:
CType(e.Row.FindControl("lblTotal"), Label).Text = CStr(amnt)
try this
CType(e.Row.FindControl("lblTotal"),Label).Text=String.Format("{0:#.##}",amnt);
please don't forget to vote on the post that helped you.