shosho s

shosho s

  • NA
  • 137
  • 98.8k

@Html.HiddenFor() always returns default 0 value?

Apr 14 2016 4:11 AM
I have a form which has a dropdownlist with Services.
I'm using the hiddenfor so that on page load the selected item from this dropdown Id, is sent to a post  action in the controller. 
 
But for some reason the value of this hiddenfor attribute is always 0.
what am i doing wrong please help. 

Answers (3)