How to ask for confirmation to delete checklist items?
<p>I have some dynamically generated checklist-items. When user deletes them, confirmation box should appear. How can i do that ?</p>

<pre><code>protected void btndelete_Click(object sender, EventArgs e)
        {
            try
            {
                string conn = ConfigurationManager.ConnectionStrings["sqlconn"].ConnectionString;
                SqlConnection con = new SqlConnection(conn);
                con.Open();
            check:
                if (CheckBoxList1.SelectedItem != null)
                {
                    foreach (ListItem l in CheckBoxList1.Items)
                    {
                        if (l.Selected)
                        {
                            SqlCommand cmd = new SqlCommand("Drop Table " + l, con);
                            cmd.ExecuteNonQuery();
                            Label4.ForeColor = Color.Red;
                            Label4.Text = " PaperSet Deleted successfully";
                            CheckBoxList1.Items.Remove(l);
                            papersetlist.Items.Remove(l);
                            Psetlist.Items.Remove(l);
                            goto check;
                        }
                    }
                }
                con.Close();

            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
</code></pre>

<p>This is delete button event code.</p>
