|
|
helper methods that provide an easy way to render HTML in a view.
You use HTML helpers in a view to render HTML content. An HTML helper, in most cases, is just a method that returns a string.
You can build an entire ASP.NET MVC application without using a single HTML helper. However, HTML helpers make your life as a developer easier. By taking advantage of helpers, you can build your views with far less work.
The following list shows some of the currently available HTML helpers.
-> ActionLink  Links to an action method.
-> BeginForm *  Marks the start of a form and links to the action method that renders the form.
-> CheckBox *  Renders a check box.
-> DropDownList *  Renders a drop-down list.
-> Hidden  Embeds information in the form that is not rendered for the user to see.
-> ListBox  Renders a list box.
-> Password  Renders a text box for entering a password.
-> RadioButton *  Renders a radio button.
-> TextArea  Renders a text area (multi-line text box).
-> TextBox *  Renders a text box.
|
|
|