foreach in mvc 5 counter values

foreach in mvc 5 counter values

 The below code sample for foreach in MVC 5 razor view.

<div class="list-group">                    
      @foreach (var pro in ViewBag.BucketTypes)
      {
         <a href="/Connect/ServiceDetails/@pro.ID" class="list-group-item">
                <span class="badge">@pro.SERVICECOUNT  View detail</span>
                <i class="fa fa-bitbucket"></i> @pro.VALUE
         </a>
      }
 </div>
ANIL SINGH

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Buy Books Online at Best Prices

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.