Custom HTML Helpers in MVC3 Razor

  • In MVC3 Razor we have HTML helpers to render different controls. 
  • Instead of using these helpers we can create our own helper classes and methods and use them as we want.
  • The creation of custom helpers provides flexibility to change the attributes and style of the control that renders.

Following is the list of Custom HTML Helpers :

  • Label - Creates a simple label.
  • Textbox - Creates a simple Textbox.
  • Password - Creates simple password control i.e. input type="password".
  • Hidden - Creates hidden input field.



    SO Nice article very useful