using System;

public partial class CheckBoxList_ArrayItemsDataBind : System.Web.UI.Page
{
   protected void cblItems_Init(object sender, EventArgs e)
   {
      // Tworzenie tablicy elementów do dodania.
      string[] Categories = { "Fantastyka", "Powieści", "Komputery", "Historia", "Religia" };
      cblItems.DataSource = Categories;
      cblItems.DataBind();
   }
}
