Skip to content Skip to sidebar Skip to footer

Generating File With Ajax And Allow User To Download It?

I have very similar problem as this: Allowing users to download files - ASP.NET , but in my case I am generating xlsx file with ajax, and on ajax-called aspx page I am using: Respo

Solution 1:

Currently JavaScript can't access to the user's file system, meaning you can't prompt users to save a file coming from a network stream.

In other words. You'll need to do that redirect and write your file stream to the HTTP response and let the user decide what to do :)

Post a Comment for "Generating File With Ajax And Allow User To Download It?"