rptTargets.DataSource = from t in DB.SalesTargets select new { t.Target, t.SalesRep.RepName };
string repName = (string)DataBinder.Eval(e.Item.DataItem, "RepName");
string target = (string)DataBinder.Eval(e.Item.DataItem, "Target");
http://stackoverflow.com/questions/1212210/anonymous-type-in-repeater-databound-event
anonymous type in repeater or datalist
Gönderen
pantepember
12 Ağustos 2010 Perşembe
Etiketler: anonymous type , datalist , linq , repeater