File download problem with Response.Cache ???
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
I wrote some code to restrict the back button after signout of my webapplication.. the code is Response.Expires = 0 Response.Cache.SetNoStore() Response.AppendHeader("Pragma", "no-cache") with this code I'm unable to download the files from my server.. File download code is Response.Clear() Response.AddHeader("Content-Disposition", "attachment; filename=" & file.Name) Response.AddHeader("Content-Length", file.Length.ToString()) Response.ContentType = "text/plain" Response.WriteFile(file.FullName) Response.End() How can I solve it??