コード例 #1
0
 //Get Backup List
 #region [Get Backup List]
 //
 public int GetDBBackup()
 {
     try
     {
         prmList    = new string[2];
         prmList[0] = "@Action";
         prmList[1] = "BackUp";
         int count = ObjHelper.ExecuteQueryForBackup(prmList, "GETDATABACKUP");
         if (count > 0)
         {
             return(count);
         }
         else
         {
             DataTable dt = new DataTable();
             dt.Columns.Add("ExFileName");
             dt.Rows.Add();
             dt.Rows.Add();
             dt.Rows.Add();
         }
         return(count);
     }
     catch (Exception exp)
     {
         throw exp;
     }
 }
コード例 #2
0
        protected void lnkBtnDelete_Click(object sender, EventArgs e)
        {
            string[] confirmValue = Request.Form["confirm_value"].Split(',');
            if (confirmValue[confirmValue.Length - 1] == "Yes")
            {
                LinkButton btn = (LinkButton)sender;

                //Get the row that contains this button
                GridViewRow gvr       = (GridViewRow)btn.NamingContainer;
                string      ReceiptNO = grdFees.DataKeys[gvr.RowIndex].Values[0].ToString();

                string[] param = new string[4];
                param[0] = "@Action";
                param[1] = "DeleteFeesReceipt";
                param[2] = "@ReceiptNo";
                param[3] = ReceiptNO;

                int rs = ObjHelper.ExecuteQueryForBackup(param, "Sp_StudentInfo");

                if (rs > 0)
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Information", "alert('Fees Receipt Delete Successfully..!!!')", true);
                    BindData();
                }
                else
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Information", "alert('Unable to  Delete..!!!')", true);
                }
            }
        }