Example #1
0
    protected void bt_Delete_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["Insurance"] > 0)
        {
            foreach (ListItem item in cbl_ApplyCity.Items)
            {
                if (item.Selected)
                {
                    PM_StdInsuranceCostInCityBLL c = new PM_StdInsuranceCostInCityBLL();
                    c.Delete(int.Parse(item.Value));
                }
            }

            BindCheckBoxList();
        }
    }
    protected void bt_Delete_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["Insurance"] > 0)
        {
            foreach (ListItem item in cbl_ApplyCity.Items)
            {
                if (item.Selected)
                {
                    PM_StdInsuranceCostInCityBLL c = new PM_StdInsuranceCostInCityBLL();
                    c.Delete(int.Parse(item.Value));
                }
            }

            BindCheckBoxList();
        }
    }