Reading Data with LINQ

05.25.2011

example

var mtype = (from t in dc.Magazines

orderby t.MagType

select menu {t.MagType}).Distinct();

 

ddlMagazineType.DataSource = mtype.ToList();

ddlMagazineType.DataTextField = “MagType”;

ddlMagazineType.DataBind();