By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,373 Members | 1,792 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,373 IT Pros & Developers. It's quick & easy.

Dynamic Content-Disposition file naming.

P: n/a
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

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
Martin Schmid, EIT, CCSA, MCDBA, MCSE
Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.