protected void lnkFrwdDelete_Click(object sender, EventArgs e)
        {
            int        CompanyID             = Convert.ToInt32(Session["FrCompanyID"]);
            LinkButton btn                   = (LinkButton)sender;
            TblCompanyAccountDetail objCmpAc = new TblCompanyAccountDetail(CompanyID);

            ScriptManager.GetCurrent(this).RegisterAsyncPostBackControl(btn);
            TblClientAccount.Delete(TblClientAccount.Columns.Fid, btn.CommandArgument);
            TblFarwordAmount.Delete(btn.CommandArgument);
            lblmsg2.Text = MessageBox.Show(msgDiv2, "Record has been deleted!", "alert alert-success alert-icon alert-dismissible", icon, "glyphicon glyphicon-ok-sign");
            LoadFrwdAmount(objCmpAc.SerialNo);
        }
Exemple #2
0
        protected void lnkDelete_Click(object sender, EventArgs e)
        {
            LinkButton       btn = (LinkButton)sender;
            TblClientAccount obj = new TblClientAccount(btn.CommandArgument);

            if (obj.Fid != null)
            {
                TblFarwordAmount.Delete(obj.Fid);
            }
            TblClientAccount.Delete(btn.CommandArgument);
            lblmsg.Text = MessageBox.Show(msgDiv, "Record has been deleted!", "alert alert-success alert-icon alert-dismissible", icon, "glyphicon glyphicon-ok-sign");
            string id = ddlClientName.SelectedValue;

            ClearInputs(Page.Controls);
            ddlClientName.SelectedValue = id;
            BindGrid(Convert.ToInt32(ddlClientName.SelectedValue));
        }