Guest User

Guest User

  • Tech Writer
  • 103
  • 13.5k

Send Id .cshtml to .cs page

May 5 2021 9:15 AM
Hello this is my code
@foreach (var category in Model)
{
<li id="@category.CategoryId"><a href="/blog/category/@category.UrlSlug">@category.Title</a></li>
}
Display Categories with data in blog page .How to send categories id when click particular catgeories .cshtml page to .cs page
it's very argent please send solution.

Answers (1)