注册 登录
编程论坛 ASP.NET技术论坛

如何在textbox中显示1000000为10,000,000.00

foshan 发布于 2007-06-28 13:02, 519 次点击
如何在textbox中显示10000000为 10,000,000.00
即显示为财务的格式
2 回复
#2
永不回头2007-06-28 13:25
string.Format("{0:f}", 数字);
#3
foshan2007-06-28 14:33
谢谢!
TextBox9.Text = string.Format("{0:N}", float.Parse(MyRow["htjj"].ToString()));
1