DropDownList ddlSize = (DropDownList)FormView_Product.Row.Cells[0].FindControl("ddlSize"); CommerceEntities db = new CommerceEntities(); ddlColor.DataSource = from p in db.ProductTypes where p.ProductID == pID orderby p.Color select new { p.Color }; ddlColor.DataTextField = "Color";
ddlColor.Items.Insert(0, new ListItem("Select","NA"));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)