显示不同类型的标签文本 [英] show label text in different type

查看:136
本文介绍了显示不同类型的标签文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个标签控件,并且包含类似122629,23456的值

当我运行我们的页面时,它显示122629和23456,但是我想显示1,222,629和23,456

但是我不知道该怎么办..so帮助我..

i have two label control and it''s contain a value like 122629,23456

and when i run our page then it show 122629 and 23456 but i want to show 1,22,629 and 23,456

but i don''t know how i do..so help me..

推荐答案



字符串格式应该可以帮助您.
检查一下.

http://msdn.microsoft.com/en-us/library/0c899ak8.aspx [ ^ ]
Hi,

String formats should help you.
Check this out.

http://msdn.microsoft.com/en-us/library/0c899ak8.aspx[^]


引用
采用asp:label的字符串格式 [
Refer
string format in asp:label[^]


string Ans = (122629).ToString("N0", CultureInfo.CreateSpecificCulture("Hi-In"));


祝您编码愉快!
:)


Happy Coding!
:)


这篇关于显示不同类型的标签文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆