Hey All,
return new SelectList(new[] { "Please choose an option." });
In the preceding statement, how can I add a value=string.empty for the text value above?
Thanks, rodchar
The following is what works for me, however, is there a more consise way to write this?
return new SelectList(new[] { "Please choose." }
.Select(a => new { value = "", text = a.ToString() }), "value", "text", "");