Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ASP.NET 网页的转发器中有这一行:
<%# Eval(123456) %>
我想用分隔符显示我的号码(123456)(如:123,456)
我必须做什么?
我对字符串格式有所了解。我使用一些字符串格式,如 "{N3}" 和 "{#,000)" 。但这对我没有帮助。
你在找这个吗?
string.Format("{0:n0}", 123456);