1
Answer

Send Id .cshtml to .cs page

Guest User

Guest User

3y
381
1
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)