Can you guys please check this code, it is MVC3 Razor
<p><strong><u>Skills:</u></strong> @foreach (var skill in personRepo.GetAllSkillsByID(id))
{
@skill
}</p>
and here’s the result for it
Skills: CSSDesignCommutingDriving
As you can see the result doesn’t have any space and comma. I just want to know how to add a comma between the results and no comma on the last result, just like this.
Skills: CSS, Design, Commuting, Driving
Thank you for your help!
Why aren’t you using string.Join?