Ekrem Tapan

Ekrem Tapan

  • NA
  • 967
  • 81.2k

passing value razor to controller

Dec 29 2016 1:04 AM
  1. <a href="@Url.Action("NEWS_DETAILS", "Home", new { title=item.NEWS_TITLE })">  
  2.    @Html.Hidden("NewsID", item.NEWS_ID)  
  3.    <img class="thumb" src="@item.SHOW_IMAGE" alt="">  
  4.    <span class="date">@item.NEWS_STARTDATE</span>  
  5.    <h2>@Html.Raw(@title)</h2>  
  6.    @Html.Markdown(@content + "....")  
  7. </a>  
hi everyone, 
 
how can i passing razor to controller hidden value ?  -->>  @Html.Hidden("NewsID", item.NEWS_ID) 

Answers (8)