using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Remittance.Common; using Remittance.DAL.Entities; using Remittance.DAL.Repo; using Remittance.DAL; namespace Remittance.Payment { public partial class download : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { IQueryable<transaction> src= Session["SRC"]as IQueryable<transaction>; string reportName = (string)Session["reportname"]; string extension = (string)Session["extension"]; byte[] bytes = (byte[])Session["Byte"]; Response.Clear(); // Response.ContentType = mimeType; Session["Success"] = "Success"; Response.AddHeader("Content-Disposition", "attachment; filename=" + reportName + "." + extension); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.OutputStream.Write(bytes, 0, bytes.Length); Response.Flush(); Response.End(); } } } </transaction></transaction>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)