コード例 #1
0
        protected void imgDelete_Click(object sender, EventArgs e)
        {
            log4net.ILog logger = log4net.LogManager.GetLogger("File");
            try
            { SpaMaster MyMasterPage = (SpaMaster)Page.Master;
              // SpaMaster MyMasterPage = (SpaMaster)Page.Master;

              DataTable dtAddNewPass = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "90");

              if (dtAddNewPass.Rows.Count > 0)
              {
                  if (ViewState["KeyID"] != null)
                  {
                      ModalPopupDeleteimage.Show();
                  }
              }
              else
              {
                  MyMasterPage.ShowErrorMessage("You Do not Have Permission..!");
              } }
            catch (Exception ex)
            {
                logger.Info(ex.Message);
            }
        }
コード例 #2
0
 protected void imgDelete_Click(object sender, EventArgs e)
 {
     log4net.ILog logger = log4net.LogManager.GetLogger("File");
     try
     {
         if (ViewState["Chkinkeyid"] != null)
         {
             ModalPopupDeleteimage.Show();
         }
     }
     catch (Exception ex)
     {
         logger.Info(ex.Message);
     }
 }