asp.net-mvc Html Helpers

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

HTML helpers are methods used to render HTML elements in a view. They are part of the System.Web.Mvc.HtmlHelper namespace.

There are different types of HTML helpers:

Standard HTML Helpers: They are used to render normal HTML elements, e.g. Html.TextBox().

Strongly Typed HTML Helpers: These helpers render HTML elements based on model properties, e.g. Html.TextBoxFor().

Custom HTML Helpers: The user can create custom helper method which returns MvcHtmlString.



Got any asp.net-mvc Question?