You can use this parameter to create a default option at the top of the dropdown list (see Figure 4).
You add an option Label like this: Figure 4 – Displaying an option label If a user submits a form with the option label selected, then an empty string is submitted to the server.
However, HTML helpers make your life as a developer easier.
By taking advantage of helpers, you can build your views with far less work.
Drop Down List() helper with the name of the Select List.
The view in Listing 4 displays the Customer Id Select List (see Figure 3). Drop Down List() helper also supports an option Label parameter.
Otherwise, an evil hacker can initiate a Java Script injection attack and, potentially, steal sensitive information from your users such as passwords and credit card numbers.· protocol – The protocol for the link (for example, https) · hostname – The host name for the link (for example,