This property was originally set in the aspx file, however I want to change it to select programatically on page load.
I set the Pager.PagedControlID property, but I receive the following error message on this line:
Pager.PageSize = Convert.ToInt32(ListLength);
Page properties cannot be set because no IPageableItemContainer has been found.
Any ideas? The ID I am using I copied and pasted out of the inline aspx and I checked it is correct.