protected void btn_PrintSave_Click(object sender, EventArgs e) { lblSaveFlag.Text = "SavePrint"; if (lblEdit.Text == "Edit") { KycFormSave(); Page.ClientScript.RegisterStartupScript( this.GetType(), "OpenWindow", "window.open('KycFormReport.aspx?KycNo=" + lblAutoExtend.Text + "');", true); lblAutoExtend.Text = ""; return; } else { OtherBAL ObjBal = new OtherBAL(); DataSet ds = ObjBal.Idv_Chetana_Get_KycForm_GetMasterCust(txtCustCode.Text, Convert.ToInt32(Session["FY"]), "ChkCode"); DataTable dt = ds.Tables[0]; if (dt.Rows.Count > 0) { ModalPopupExtenderNew.Show(); return; } else { KycFormSave(); Page.ClientScript.RegisterStartupScript( this.GetType(), "OpenWindow", "window.open('KycFormReport.aspx?KycNo=" + KycMax.ToString() + "');", true); lblAutoExtend.Text = ""; } } }
protected void btn_Save_Click(object sender, EventArgs e) { lblSaveFlag.Text = "Save"; if (lblEdit.Text == "Edit") { KycFormSave(); lblAutoExtend.Text = ""; return; } else { OtherBAL ObjBal = new OtherBAL(); DataSet ds = ObjBal.Idv_Chetana_Get_KycForm_GetMasterCust(txtCustCode.Text, Convert.ToInt32(Session["FY"]), "ChkCode"); DataTable dt = ds.Tables[0]; if (dt.Rows.Count > 0) { ModalPopupExtenderNew.Show(); return; } else { KycFormSave(); lblAutoExtend.Text = ""; } } }