<p>I have something like the following in an ASP.NET MVC application:</p>

<pre><code>IEnumerable&lt;string&gt; list = GetTheValues();
var selectList = new SelectList(list, "SelectedValue");
</code></pre>

<p>And even thought the selected value is defined, it is not being selected on the view.  I have this feeling I'm missing something here, so if anyone can put me out my misery!</p>

<p>I know I can use an annoymous type to supply the key and value, but I would rather not add the additional code if I didn't have to.</p>

<p>EDIT: This problem has been fixed by ASP.NET MVC RTM.</p>

Try this instead:
```
```
IDictionary<string,string> list = GetTheValues();
var selectList = new SelectList(list, "Key", "Value", "SelectedValue");
```
```
SelectList (at least in Preview 5) is not clever enough to see that elements of IEnumerable are value type and so it should use the item for both value and text.  Instead it sets the value of each item to "null" or something like that.  That's why the selected value has no effect.