title: How to remove model state error for dropdown with selected option label in mvc?
body: <p>I am working on a MVC project.I have a view having a dropdownlist with an option label "Select Task".Now the integer property bound with this dropdown is not a required field.</p>
  
  <p>But then too after I try to save, I get the dropdown having a red border showing that it is required. When I analysed, I found that the option label has value null.</p>
  
  <p>Using firebug when I entered 0 for the value of option label, the view was saved with no model state error. Am I doing something wrong ? How to avoid it ? </p>
  
  <pre><code>View 
  </code></pre>
  
  <p><code>@Html.DropDownListFor(model =&gt; model.projecttaskid, new       SelectList((IList&lt;SelectListItem&gt;)ViewData["MyTasks"], "Value", "Text"),"Select Task", new { @class = "span2" })</code> </p>
  
  <p><code>Model public int projecttaskid { get; set; }</code> Controller It doesn't reach the controller action.</p>