B
beaudetious
I've got an ASP.NET 2.0 form with a checkboxlist control bound to a
SqlDataSource control. In the page's Page_Load event I want to loop through
the items in this CheckBoxList and programmatically select a few items.
However, when I do this in a foreach block I find that the ItemsCollection
contains 0 items. So, when is the best place to perform this task if not the
Page_Load event (checking for !IsPostBack of course).
Thanks,
beaudetious
SqlDataSource control. In the page's Page_Load event I want to loop through
the items in this CheckBoxList and programmatically select a few items.
However, when I do this in a foreach block I find that the ItemsCollection
contains 0 items. So, when is the best place to perform this task if not the
Page_Load event (checking for !IsPostBack of course).
Thanks,
beaudetious