· data Text Field – The name of the property to display for each item in the Select List as the label of the item.
· selected Value – The item to select in the Select List.
However, unlike a Web Form control, HTML helpers are extremely lightweight. Action Link() helper to create a link to a controller action.
For example, an HTML helper does not have an event model and does not use view state. NET MVC framework includes a standard set of helpers that you can use to render the most common types of HTML elements. For example, the view in Listing 1 includes a link to an action named About (see Figure 1). Action Link() helper Listing 1 – Views Home In Listing 1, the first parameter passed to the Html.
· data Value Field – The name of the property to associate with each item in the Select List as the value of the item.An HTML helper, in most cases, is just a method that returns a string. NET MVC application without using a single HTML helper.However, HTML helpers make your life as a developer easier.· route Values – The set of values passed to the action.
· controller Name – The controller that is the target of the link.The view in Listing 4 displays the Customer Id Select List (see Figure 3). Drop Down List() helper also supports an option Label parameter.