Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1990

Html helpers in MVC

$
0
0
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
Code:
<input type=text id=email name=email value=’’/>
This is all Html we need to write by using the helper method it becomes so easy
Code:
@Html.TextBox(‘email’)
It will generate textbox control whose name is email.
If we want to assign...

Html helpers in MVC

Viewing all articles
Browse latest Browse all 1990

Trending Articles