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 #,###.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?