1
Answer

how to bind html controls without using MVC html helpers?

tri_inn

tri_inn

9y
829
1
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)