This project is read-only.

Unwanted semicolon in Enumeration Field on display time?

Topics: General
Oct 21, 2013 at 10:47 AM
I've created one content type for Store. In that. there is a field for floor which is enumeration field and its having a options like Floor-1,Floor-2 and Floor-3.

For Layout of queries, I've selected Display Mode as Properties and added Floor properties.
On rendering time, It's rendering ";;Floor-1;Floor-2;Floor3;"

So, Why is semicolon appends on that field?
Oct 22, 2013 at 1:12 AM
u can create alternate template to overid current template by .cshtml
Oct 22, 2013 at 6:13 AM
Thanks for your response.
I've override current template, still it displays same.
Oct 22, 2013 at 10:59 PM
Those semicolons happen to me a thousand times when I write something like
I have this urge to finish my statement with a semicolon, I event do it in css in statements like
style="font-weight: bold;"
where the semicolon really does not make much sense. However, razor is unforgiving and will throw it right back into your HTML source. In Visual Studio, you will notice that those unwanted semicolons do not show a grey background like the razor code does. Maybe this is causing your problem.