protected void Button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if(CheckBoxList1.Items.[i].selected)
{
cart.Add(CheckBoxList1.Items[i].Text);
}
}
Session["message"]=cart;
Response.Redirect("Display.aspx");
}
I store the checkboxlist item to a session object
now how i will send this checkboxlist text item and total item to a table in another page Display.aspx