Dynamic Content-Disposition file naming.

M

Martin Schmid

I'm trying to create a dynamic image that can be right-clicked and saved by
the user... I've got it all working, except the default filename... The
following works:
Response.AddHeader("Content-Disposition", "inline;filename="+"hi");

I.e., this will cause the default name to be "hi" in my app... however, if I
use:

Response.AddHeader("Content-Disposition", "inline;filename="+someVar);

Where someVar is a string... the default name is always the text "Result"

Any ideas how I can get this to work? I've tried all sorts of string
concatenation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top