I think it would be a lot easier to just let the client download it (which gives the "Open" option that saves it to the temp directory). But if you really don't want them to have to download a file, (don't quote me on this) I think you might have to read the file and use response.write to write everything you read back to the user, using a StringWriter and StringReader from the System.IO namespace. When writing you'll probly want to check out the Response.ContentType method. This is essentially doing the same thing as offering the option to download though.
That depends on the users settings as they can change whether they get this prompt or not. Changing the ContentType, like in my example, will in most cases prompt the user to save or open the file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.