protected void rptrDownload_ItemCommand(object source, RepeaterCommandEventArgs e) { LinkButton lblIssuanceBatchID = (LinkButton)e.Item.FindControl("lblIssuanceBatchID"); LeadsDownloadBL obj = new LeadsDownloadBL(); clsMailFormats format = new clsMailFormats(); DataSet ds = obj.GetLeadsIssuedDetails(lblIssuanceBatchID.Text); //string text = string.Empty; //text = format.DownloadLeadInfoDetails(ref text, ds.Tables[0]); //lblMultiListMail.Visible = true; //lblMultiListMail.Text = text; //MpeListMail.Show(); DataSetToExcel.Convert(ds, Response, "LeadsHistory" + lblIssuanceBatchID.Text); }
protected void rptrDownload_ItemCommand(object source, RepeaterCommandEventArgs e) { LeadsDownloadBL objLeadDownload = new LeadsDownloadBL(); HiddenField lblStateID = (HiddenField)e.Item.FindControl("lblStateID"); Label lblStateCode = (Label)e.Item.FindControl("lblStateCode"); DataSet dsLeadsDownload = objLeadDownload.GetAllcotedLeadsDownload(ddlVehicleType.SelectedItem.Value, ddlCenter.SelectedItem.Value, txtStartDate.Text, txtEndDate.Text, lblStateID.Value, Convert.ToInt32(Session[Constants.USER_ID]).ToString()); //DataSetToExcel.Convert(dsLeadsDownload, Response, ddlVehicleType.SelectedItem.Value + lblStateCode.Text); DataSetToExcel.Convert(dsLeadsDownload, Response, "UCE-CarLeads-" + ddlCenter.SelectedItem.Text + "-" + String.Format("{0:yyyy-MM-dd}", System.DateTime.Now.ToString()) + ".xls"); }
protected void rptrDownload_ItemCommand(object source, RepeaterCommandEventArgs e) { try { LinkButton lblIssuanceBatchID = (LinkButton)e.Item.FindControl("lblIssuanceBatchID"); LeadsDownloadBL obj = new LeadsDownloadBL(); DataSet ds = obj.LeadsUploadDetailsByBatchID(lblIssuanceBatchID.Text); DataSetToExcel.Convert(ds, Response, "LeadsUploadHistory" + lblIssuanceBatchID.Text); //DataSetToExcel.Convert(ds, Response, "LeadsHistory" + lblIssuanceBatchID.Text + ".xls"); } catch (Exception ex) { throw ex; } }