Custom HTML Helpers in Asp.net 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.

1 comments:

  1. https://lh6.googleusercontent.com/-Q5lMkgcmVR4/T2WEWkNi3MI/AAAAAAAACZ4/7VBYeVbx7kA/s36/01.gif

    SO Nice article very useful


    https://lh3.googleusercontent.com/-ilBYLLWFQJQ/T2WEiJXJ7LI/AAAAAAAACcY/bXpkIPuVUto/s36/29.gif

    ReplyDelete