protected void imbDelete_Click(object sender, ImageClickEventArgs e) { try { decimal configId = decimal.Parse(((ImageButton)sender).CommandArgument); ConfigScriptBiz biz = new ConfigScriptBiz(); biz.DeleteData(configId); DoSearchSaleScript(0); AppUtil.ClientAlert(Page, "ลบข้อมูลเรียบร้อย"); } catch (Exception ex) { string message = ex.InnerException != null ? ex.InnerException.Message : ex.Message; _log.Error(message); AppUtil.ClientAlert(Page, message); } }