HTML Helper in MVC

  • HTML Helper supports in MVC in ASP.NET. It is easy way to create control or html help render HTML controls in an MVC application.

  • HTML Helper is a one of the class and using System.Web.Mvc.Html Namespace. HTML Helper class is insight the System.Web.Mvc.Html Namespace.

  • It supports many controllers like Textbox, Label, Dropdown list, Checkbox, Radio button, Text Area, Password and so on.
There is different type of HTML helper.
  • In line HTML Helper.
  • Built in HTML Helper.
  • Standard Html Helper.
  • Strongly Typed Html Helper.
  • Template Html Helper.
  • Custom HTML Helper.

    Syntax for Html Helper
    1. @Html.TextBox(“txtFirstName”)  
    @ For Razor view engine.

    Html It is helper class.

    TextBox  Which controller need.

    txtFirstName Id of controller name.
Ebook Download
View all
Learn
View all