ProgrammerGuide.Net | Step by Step Programmer Guide

What are HTML helpers in ASP.NET MVC? | ASP.NET MVC Interview Question

HTML helpers help you to render HTML controls in the view. For instance if you want to display a
HTML textbox on the view, below is the HTML helper code.

<%= Html.TextBox(“LastName”) %>

For checkbox below is the HTML helper code. In this way we have HTML helper methods for every
HTML control that exists.

<%= Html.CheckBox(“Married”) %>
Please click here for related products on Amazon!

Jayashee

Add comment

Want to Check Celebrities News?