Why Join
Become a member
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
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forumguidelines
Ekrem Tapan
1.2k
893
54k
passing value razor to controller
Dec 29 2016 1:04 AM
<a href=
"@Url.Action("
NEWS_DETAILS
", "
Home
", new { title=item.NEWS_TITLE })"
>
@Html.Hidden(
"NewsID"
, item.NEWS_ID)
<img
class
=
"thumb"
src=
"@item.SHOW_IMAGE"
alt=
""
>
<span
class
=
"date"
>@item.NEWS_STARTDATE</span>
<h2>@Html.Raw(@title)</h2>
@Html.Markdown(@content +
"...."
)
</a>
hi everyone,
how can i passing razor to controller hidden value ? -->>
@Html.Hidden(
"NewsID"
, item.NEWS_ID)
Reply
Answers (
8
)
bootstrap datepicker not working after postback
ASP.net c# Avoid open the same window twice