Response.ClearHeaders() Response.AddHeader("Cache-Control", " no-store, no-cache ")
Response.Clear() Response.ClearContent() Response.Buffer = True 'Commented and Added By: Varun Sareen on 04/08/2014 Response.ClearHeaders() Response.AddHeader("Cache-Control", " no-store, no-cache ") Response.ExpiresAbsolute = System.DateTime.FromOADate(Now.ToOADate - 1) Response.Expires = 0 Server.ScriptTimeout = Server.ScriptTimeout + 10000000 '************Till Here***************** Response.Charset = "" 'Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.ContentType = dt.Rows(0)("CPP_Party_FileContent").ToString() Response.AddHeader("content-disposition", "attachment;filename=" & dt.Rows(0)("CPP_Party_FileName").ToString()) Response.BinaryWrite(bytes) Response.Flush() Response.End()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)