3
Answers

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

Ask a question
shosho s

shosho s

8y
467
1
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)