Is there a way in mvc to read the name that will be assigned to control html?
For example, I use this code:
<div> @Html.LabelFor(x => x.Name) @Html.TextBoxFor(x => x.Name) @Html.ValidationMessageFor(x => x.Name) @Html.HiddenFor(x => x.Id) <div> I want to display here a TextBox name </div> </div>
And I want to get the input name. This code is a fragment of a partial view. The item name looks like children [1] .Name
c # asp.net-mvc asp.net-mvc-3 razor html-helper
nosbor
source share