IList<SUB_HEAD> GetList(string u) { var collection = (from s in context.DB.SUB_HEAD where (s.head_code.Equals(u)) select s); return collection.ToList(); } drpdwn.datasource=Getlist(); drpdwn.databind();
Arraylist unitlist= new Arraylist(); ObjectSet<SUB_HEAD> List = subheadService.GetAll(); foreach(SUB_HEAD unit in List) { unitlist.Add(unit.sub_head_code); } drpdwn.datasource=unitlist; drpdwn.databind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)