in String.Format(...) for currency
I use String.Format to do currency formatting. It works great, but I want a non-breaking space ( ) between the currency symbol (R) and the value so it doesn't wrap in small spaces, making it harder to read.
<%=String.Format("{0:R #,###.00;(R #,###.00);R 0.00}", Model)%>
where Model is a decimal.
How do I add   between R and开发者_StackOverflow #,###.00 without confusing the String.Format method?
Would it be possible to wrap the result in an element with the css white-space property set?
<span style="white-space:nowrap;"><%=String.Format("{0:R #,###.00;(R #,###.00);R 0.00}", Model)%></span>
<%=String.Format("{0:R #,###.00;(R #,###.00);R 0.00}", Model)%>
No?
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论