Validating form data using hidden fields


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,


  1. Pingback:

  2. eric   •  

    Although this list can change every few months, the biggest of the bunch usually stay the same.

  3. eric   •  

    The lower jawbone was discovered by potholers in Pestera cu Oase, the "cave with bones", located in the southwestern Carpathian Mountains of Romania in 2002.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>