protected void ucConfirmDialog_Yes(object sender) { ucConfirmDialog.Hide(); try { Admins vcontroller = new Admins(); string errMsg = string.Empty; string[] listid = Convert.ToString(Request.QueryString["ID"]).Split(new char[] { ',' }); int masp = Convert.ToInt32(listid[0]); int masize = Convert.ToInt32(listid[1]); int result = vcontroller.update_soluong_sp(masp, masize, Convert.ToInt32(txtsoluong.Text), ref errMsg); if (result > 0) { ucNotificationDialog.MessageContent = "cập nhập số lượng sản phẩm thành công!"; ucNotificationDialog.MessageType = 1; ucNotificationDialog.RedirectUrl = "~/Admin/sanphams.aspx"; ucNotificationDialog.Show(); } else { NotificationMessage("Vui lòng kiểm tra lại.", 0); } } catch (Exception ex) { Response.Write(ex.Message); ucNotificationDialog.MessageContent = "Hệ thống gặp sự cố trong quá trình cập nhật !"; ucNotificationDialog.MessageType = 0; ucNotificationDialog.Show(); } }