I’m outputting a fews strings using Html.Label(strings).
When I pass it a value with a period in it, it outputs nothing but spaces
Html.Label(company)
e.g <%: Html.Label("Bill Co.")%>
Company is a dynamic value, it will work if the value is “Bill Co” but not if it is “Bill Co.”, the only difference is that period.
I should be able to pass any string to it as per
HhtmlHelper.Label via msdn
public IHtmlString Label(
string labelText
)
Any ideas?
I used ToHtmlString() and that solved the issue.
Thanks