Пример #1
0
 protected void btnCancel_Click(object sender, EventArgs e)
 {
     ModalPopupEdit.Hide();
     ModalPopupAdd.Hide();
     ModalPopupDelete.Hide();
     ClearAdd();
 }
Пример #2
0
        protected void btnNewItemAddUda_Click(object sender, EventArgs e)
        {
            log4net.ILog logger = log4net.LogManager.GetLogger("File");
            try
            {
                dal.executesql("Update OffleaveSetting Set LeaveType ='" + ddlTypeOfLeaveUda.SelectedItem.Text.Trim() + "',SuperiorName='" + txtsuperiorOfficerUda.Text.Trim() + "',StaffName='" + ddlStaffnameUda.SelectedItem.Text.Trim() + "',NoOfDay='" + txtNoOfdayUda.Text.Trim() + "' where OLid = '" + lblidUda.Text.Trim() + "' ");
                // Response.Redirect("~/Supervisor/OffLeaveSetting.aspx");
                SpaMaster MyMasterPage = (SpaMaster)Page.Master;

                MyMasterPage.ShowErrorMessage("Record Update sucessfully ..!");
                ModalPopupEdit.Hide();
                BindGrid();
            }
            catch (Exception ex)
            {
                logger.Info(ex.Message);
            }
        }