What is an Html Helper?
Html helper is a method that is used to render HTML content in a view. Html helpers are implemented using an extension method.
If you want to create an input text box with id=email and name is email
This is all Html we need to write by using the helper method it becomes so easy
It will generate textbox control whose name is email.
If we want to assign...
Html helpers in MVC
Html helper is a method that is used to render HTML content in a view. Html helpers are implemented using an extension method.
If you want to create an input text box with id=email and name is email
Code:
<input type=text id=email name=email value=’’/>
Code:
@Html.TextBox(‘email’)
If we want to assign...
Html helpers in MVC