HTML.HiddenFor value set

The Solution to HTML.HiddenFor value set is


For setting value in hidden field do in the following way:

@Html.HiddenFor(model => model.title, 
                new { id= "natureOfVisitField", Value = @Model.title})

It will work

~ Answered on 2013-05-02 05:08:45


Most Viewed Questions: