Dynamic Content-Disposition file naming.

Discussion in 'ASP .Net' started by Martin Schmid, May 7, 2004.

  1. 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.


    --
    Thanks,
    Martin Schmid, EIT, CCSA, MCDBA, MCSE
    Martin Schmid, May 7, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ben
    Replies:
    0
    Views:
    1,064
  2. =?Utf-8?B?R1JF?=
    Replies:
    1
    Views:
    3,404
    Craig Deelsnyder
    Aug 20, 2004
  3. Sergio Juan
    Replies:
    1
    Views:
    1,021
    mohammad.h.ashmawi
    Apr 29, 2011
  4. Replies:
    4
    Views:
    43,019
    spatil02
    Jan 30, 2012
  5. Replies:
    1
    Views:
    763
Loading...

Share This Page