Guest User

Guest User

  • Tech Writer
  • 103
  • 13.5k

Send Id .cshtml to .cs page

May 6 2021 12:28 PM
Hello everyone Please help me.
@model ICollection<CategorySummary>
<h3 id="BlogCategories">Blog Categories</h3>
<ul class="list-group--alt">
@foreach (var category in Model)
{
<li id="@category.CategoryId"><a href="/blog/category/@category.UrlSlug">@category.Title</a></li>
}
</ul>
 How to send li id in .cs file 
particular id .It's very argent Please help me 

Answers (1)