protected void btnSubmit_Click(object sender, EventArgs e) { if (ddltype.SelectedValue == "3") { try { string redirectURL = "FrmRView.aspx?&UserName="******"UserName"].ToString() + "&rptname=RptUserMaster.rdlc"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } else if (ddltype.SelectedValue == "4") { try { string BName = ""; string BRName = ""; DataTable DT = new DataTable(); DT = LG.GetBankName(Session["BRCD"].ToString()); if (DT.Rows.Count > 0) { BName = DT.Rows[0]["BankName"].ToString(); BRName = DT.Rows[0]["BranchName"].ToString(); } List <object> lst = new List <object>(); lst.Add(BName); lst.Add(BRName); lst.Add("ALL OK REPORT"); lst.Add(Session["USERNAME"].ToString()); AllOKText AK = new AllOKText(); AK.RInit(lst); AK.Start(); WebMsgBox.Show("Report Generated Succesfully!!!....", this.Page); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } }
protected void Submit_Click(object sender, EventArgs e) { try { FL = "Insert";//ankita 15/09/2017 string Res = CLM.LOGDETAILS(FL, Session["BRCD"].ToString(), Session["MID"].ToString(), "AllOk_Rpt" + "_" + Session["LOGINCODE"].ToString() + "", "00", Session["MID"].ToString()); if (ddlExport.SelectedValue == "1") { try { string redirectURL = "FrmRView.aspx?AsOnDate=" + TxtAsonDate.Text + "&UserName="******"UserName"].ToString() + "&rptname=RptAllOK.rdlc" + "&EXPF=" + ddlExport.SelectedItem.Text + ""; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } else if (ddlExport.SelectedValue == "2") { BindGrid(); } else if (ddlExport.SelectedValue == "3") { try { string redirectURL = "FrmRView.aspx?AsOnDate=" + TxtAsonDate.Text + "&UserName="******"UserName"].ToString() + "&rptname=RptAllOK.rdlc"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "popup", "window.open('" + redirectURL + "','_blank')", true); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } else if (ddlExport.SelectedValue == "4") { try { string BName = ""; string BRName = ""; DataTable DT = new DataTable(); DT = LG.GetBankName(Session["BRCD"].ToString()); if (DT.Rows.Count > 0) { BName = DT.Rows[0]["BankName"].ToString(); BRName = DT.Rows[0]["BranchName"].ToString(); } List <object> lst = new List <object>(); lst.Add(BName); lst.Add(BRName); lst.Add("ALL OK REPORT"); lst.Add(Session["USERNAME"].ToString()); lst.Add(Session["BRCD"].ToString()); lst.Add(Session["EntryDate"].ToString()); lst.Add(TxtAsonDate.Text); AllOKText AK = new AllOKText(); AK.RInit(lst); AK.Start(); WebMsgBox.Show("Report Generated Succesfully!!!....", this.Page); TxtAsonDate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }