title: Dropdown in Asp.Net
body: <pre><code>ViewBag.Years = new SelectList(Enumerable.Range(1910, DateTime.Today.Year - 1910 + 1).Select(x =&gt;
      new SelectListItem()
      {
           Text = x.ToString(),
           Value = x.ToString()
      }), "Value", "Text");
  </code></pre>
  
  <p>I am using this syntax to show the dropdown stating with 1910 year. But I need first value as blank as it is optional dropdown. How to attain that, any help would be appreciated  </p>
  
  <p>Edit: 
  Renderer on the cshtml page </p>
  
  <pre><code>  &lt;div class="col-@screenSize-4"&gt;
                          @Html.Label("Select Year")
                          @Html.DropDownListFor(model =&gt; model.EventYear, (IEnumerable&lt;SelectListItem&gt;)ViewBag.Years, new { @class = "form-control select-control", @data_placeholder = "Select one" })
   &lt;/div&gt;
  </code></pre>