Xpode.com        Click here to Print this article.

How to remove the decimals from price datatype

With below syntax, we can remove the decimals from price datatype.

 <%# Eval("Price").ToString().Substring(0, Eval("Price").ToString().IndexOf("."))%>

Thanks,
Rohit

http://
http://

Contributed by:
Rohit kakria
I am software developer

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=592

Click here to go on website