asp.net - Can I assign HTML values in MVC view using Html Helpers? -


Is that correct? Am I dynamically trying to display value in the input box?

Is this a straightforward approach to someone who can advise me? But am still getting here in the + Input box?

Thanks

Html.DisplayFor in this case Will present a label. If you want to type in this way, the value of the input will be & lt;% = Model.Date.ToString ()%> Use .

These HTML assistants will present a markup for you, do not try to retract the data and do not use them. & lt;% = Model MIPRPrint% & gt; You can get data using .

Try to use just <% = Html.EditorFor (m = & gt; m.Date)% & gt;

OR

& lt;% = Html TextBoxFor (m = & gt; m.Date)% & gt; (The editor will automatically render a textbox anyway)

OR

& lt;% = HTML <.

/ html>

Comments