Click here to Skip to main content
16,012,173 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I m displaying data in the cshtml page in the in the number format.and writing code in my cshtml page in the following format

@innovationPipelineByRegionDataYear1[0].NASalesTotal (@innovationPipelineByRegionDataYear1[0].NASalesLocallyRelevantPercentageTotal %)


Now want to display the data in comma separated format in frontend.How can i do.I want to manage in cshtml level not in controller level.can any body pls help me.
Thanks
Amrit
Posted
Comments
Maciej Los 11-Apr-14 4:02am    
String.Format()

1 solution

Try using a loop as follows
@for(var i = 0; i < count; i++)
    {<p>@innovationPipelineByRegionDataYear1[0]</p>,}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900