HTML Helpers

-> HTML helpers help you to render HTML controls in the view.
<%= Html.TextBox(“LastName”) %>

-> “HTML.TextBoxFor” is strongly typed
->  Html.TextBox(“CustomerCode”) -> creates a simple textbox with “CustomerCode” as name.
-> Html.TextBoxFor(m => m.CustomerCode) -> creates HTML textbox using the property name ‘CustomerCode” from object “m”.

Leave a Reply

Your email address will not be published. Required fields are marked *