5
Reply

What is html helper in MVC ?

Sandeep Kumar

Sandeep Kumar

8y
936
0
Reply

    With MVC, HTML helpers are much like traditional ASP.NET Web Form controls.Just like web form controls in ASP.NET, HTML helpers are used to modify HTML. But HTML helpers are more lightweight. Unlike Web Form controls, an HTML helper does not have an event model and a view state.In most cases, an HTML helper is just a method that returns a string.With MVC, you can create your own helpers, or use the built in HTML helpers

    this are html contols with further enhancement to use in MVC.It dont have any Server Side events.Though its light as compair to ASP.Net control

    helper in MVC is just an control used by razor to define a control like label,textbox etc and it takes less load time compare to Webform's

    With MVC, HTML helpers are much like traditional ASP.NET Web Form controls. Just like web form controls in ASP.NET, HTML helpers are used to modify HTML. But HTML helpers are more lightweight. Unlike Web Form controls, an HTML helper does not have an event model and a view state. In most cases, an HTML helper is just a method that returns a string. With MVC, you can create your own helpers, or use the built in HTML helpers

    Html helper in MVC is a controller class which use to develop effective and better GUI by using these controller ad textbook, button,datalist,dropdown list etc.