TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
43
6.9k
Send Value in .cs file.
Apr 19 2021 4:20 AM
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) .
Reply
Answers (
8
)
How to update data barang on table barang using trigger in sql server
HTTP Error 401.3 - Unauthorized