I am trying to set a property of my .ascx controls from an .aspx using that control.
So in one of my .aspx which has this control in it, I have the
new List().Add(item);
This line returns void.
Try:
var list = new List(); list.Add(item); ItemListt.ItemList = list;