can someone help me
Im having issues binding my dropdown list from my sql linq query, theres seems to be issues with anon types not being statically typed and then the list is not being populated
please help thanks
public static void getlocation()
{
DataClasses_AbintegroDataContext dc = new DataClasses_AbintegroDataContext("name = name");
//List<Location> thelocations = new List<Location>();
var locations = new[] { from a in dc.Locations select new { a.name } };
DropDownList ddLocation = new DropDownList();
ddLocation.DataSource = locations;
ddLocation.DataTextField = "Location";
ddLocation.DataValueField = "Location";
}