protected void btn_add_Click(object sender, System.EventArgs e)
 {
     if (lbl_id.Text != "")
     {
         ErrorLgBLL.Delete_Log(int.Parse(lbl_id.Text));
     }
     Response.Redirect(Config.GetUrl("adm/sc/log/Default.aspx?status=delete"));
 }
Esempio n. 2
0
    protected void MyList_DeleteCommand(object source, System.Web.UI.WebControls.DataListCommandEventArgs e)
    {
        int id = int.Parse(((Label)e.Item.FindControl("lbl_id")).Text);

        ErrorLgBLL.Delete_Log(id);
        ShowMessage("Record has been deleted");
        BindList();
    }
 protected void btn_delete_Click(object sender, System.EventArgs e)
 {
     ErrorLgBLL.Delete_Log();
     ShowMessage("Error Log has been cleared out");
 }