I have this code that I use to bind to a repeater:
Repeater rpt;
var q = from t in new[] { 10 }
select new { ID = t };
rpt.DataSource = q;
rpt.DataBind();
Is there a simpler way to accomplish this code segment; the var q
part?
Repeater rpt;
rpt.DataSource = new[] { new { ID = 10 } };
rpt.DataBind();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With