Beispiel #1
0
 protected void lnkBtnDelete_Click(object sender, EventArgs e)
 {
     if (lstCategoryNames.SelectedIndex >= 0)
     {
         clsDataLayer cls = new clsDataLayer();
         cls.DeleteCategory(Int32.Parse(lstCategoryNames.SelectedValue));
         Response.Redirect("frmEditCategories.aspx");
     }
 }