Drop Down LISt:
<%=Html.DropDownList("Licence", Model.lsLicence.Select(
x => new SelectListItem
{
Text = x.Misc_Desc,
Value = x.Misc_Desc,
Selected = (x.Misc_Desc == ViewData["Misc_Desc"]),
}), new { Multiple = "multiple", @class = "Licence", style = "width:120px;height:100px" })%>
eg: It will Fill all values from database in List Box
LIST 1
LIST 2
LIST 3
For Particular Search it Should Highlight the DB value which is already selected.
OUTPUT:
LIST 1
LIST 2
LIST 3
Go to the complete details ...