@using (Html.BeginForm())
{
<p>
Your Name: @Html.TextBoxFor(x => x.Name)
</p>
<p>
Your Email: @Html.TextBoxFor(x => x.Email)
</p>
<p>
Your Gender: @Html.TextBoxFor(x => x.Gender)
</p>
<p>
Your Phone: @Html.TextBoxFor(x => x.Phone)
</p>
<p>
Your Address: @Html.TextBoxFor(x => x.Address)
</p>
<input type="submit" value="Register Me" />
}
why we use like this @Html.TextBoxFor(x => x.Name)