tri_inn

tri_inn

  • NA
  • 1.2k
  • 233.9k

how to bind html controls without using MVC html helpers?

Mar 9 2015 11:08 AM
in mvc people generate html this way and bind data also


@using (Html.BeginForm())
{
    <div>
        @Html.LabelFor(m => p.Name, "Name:")
        @Html.TextBoxFor(m => p.Name)
    </div>
    <input type="submit" value="Create" />
}

but if i do not want to use html helper extension then how should i code to bind normal html controls and forms with model data. please come with a sample code. thanks

Answers (1)