Popular Posts

Tuesday, August 7, 2012

Get The Drop On ASP.NET MVC DropDownLists

MVC drop down

Get The Drop On ASP.NET MVC DropDownLists: "IEnumerable items = db.Categories
.Select(c => new SelectListItem
{
Value = c.CategoryID.ToString(),
Text = c.CategoryName
});
ViewBag.CategoryID = items;"

'via Blog this'

No comments:

Post a Comment