The HTML helpers help you to render HTML controls in the view. For instance, if you want to display an HTML textbox on the view, below is the HTML helper code.
<%= Html.TextBox("LastName") %>
For the checkbox below is the HTML helper code. In this way, we have HTML helper methods for every HTML control that exists.
<%= Html.CheckBox("Married") %>
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
The HTML helpers help you to render HTML controls in the view. For instance, if you want to display an HTML textbox on the view, below is the HTML helper code.
<%= Html.TextBox("LastName") %>For the checkbox below is the HTML helper code. In this way, we have HTML helper methods for every HTML control that exists.
<%= Html.CheckBox("Married") %>