title: Adding an empty List Box in razor view - @Html.ListBox("myLIstBox") throwing an error
body: <p>I am trying to add an empty ListBox to my Razor view page to store run time values. But It gives me an error message saying <code>There is no ViewData item of type 'IEnumerable&lt;SelectListItem&gt;' that has the key 'myListBox'</code>. I am aware that there is such viewdata. But, when I do the same with textbox, it works. </p>
  
  <pre><code>  @Html.TextBox("myTextBox")//works alright, displays a textbox 
    @Html.ListBox("myListBox") // gives error
  </code></pre>
  
  <p>How to display an empty listbox and why the above method works for textbox but for listbox?</p>