How to send value (any value) view to controller for eg please see this code
- <li id="@category.CategoryId"><a href="/blog/category">@category.Title</a></li> }
- </ul>
- <script>
- $('li').on('click', function () {
- var id = $(this).attr('id');
- alert(id);
- @*@TempData["CID"] = id;*@
- });
- </script>
i have click here categories how to send id .cs file (redirect other page) .