Friday, January 15, 2016

How do I set a HiddenFor value in Razor markup?

@Html.HiddenFor(m => m.FunId)

Alright, in this case FunId should just really get set on the model that is getting bound to the view, get it? Hand it in on the model. Duh.

No comments:

Post a Comment