The following snippet would produce. Attribute Name: Attribute value1, Attribute value2, Attribute value3.
Hope this would help.
@{ var a = ( from cr in Model group cr.SpecificationAttributeOption by cr.SpecificationAttributeName into abc select new { SpecificationAttributeName = abc.Key, SpecificationAttributeOption = string.Join(",", abc.ToArray()) } ).ToList();
} @for (int i = 0; i < a.Count(); i++) { var item = a[i];
I repliced "specValue = String.Join(", ", specValues.ToArray());" with "specValue = String.Join(Environment.NewLine, specValues.ToArray());" But NewLine not work I try <br> and \n but not work
I Have 2 problem : 1. The first specification give " " 2. I want to replice "," delimiter Instead of "<br>" or "\n" or other line break that worked