Downloading a file from an ASPX Page

Discussion in 'ASP .Net' started by C, Nov 5, 2003.

  1. C

    C Guest

    Hi,

    I generate a report in crystal and output it as a PDF.

    I then add some details to my HTTP Headers so to download
    the file.

    When the user clicks on Download button I update some
    server side labels.

    However these changes do not get pushed out to the client.

    When the user gets a screen asking them to save / open or
    cancel teh download, this dialog box seems to take control
    from the browser window and my labels on my page do not
    get updated.

    Anyone know how I can overcome this?

    Thanks,
    C.
     
    C, Nov 5, 2003
    #1
    1. Advertisements

  2. C

    John Guest

    C,

    We had a similar problem. When they clicked download it was trying to
    download the .aspx page and not the .pdf file. This was because they didn't
    have adobe plug-in installed on their computer.

    HTH
    John

    "C" <> wrote in message
    news:0c6901c3a3a6$96187630$...
    > Hi,
    >
    > I generate a report in crystal and output it as a PDF.
    >
    > I then add some details to my HTTP Headers so to download
    > the file.
    >
    > When the user clicks on Download button I update some
    > server side labels.
    >
    > However these changes do not get pushed out to the client.
    >
    > When the user gets a screen asking them to save / open or
    > cancel teh download, this dialog box seems to take control
    > from the browser window and my labels on my page do not
    > get updated.
    >
    > Anyone know how I can overcome this?
    >
    > Thanks,
    > C.
     
    John, Nov 5, 2003
    #2
    1. Advertisements

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. Sriram Mallajyosula

    How do I post data from aspx page to another aspx page.

    Sriram Mallajyosula, Nov 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    1,270
    Steve C. Orr [MVP, MCSD]
    Nov 5, 2003
  2. Marco Antonio Montalvo Durán
    Replies:
    2
    Views:
    4,612
    Matt Morris
    Jan 23, 2004
  3. =?Utf-8?B?Uk1M?=
    Replies:
    1
    Views:
    731
    =?Utf-8?B?QW5keSBMdWtzaWM=?=
    Sep 16, 2005
  4. Progman
    Replies:
    2
    Views:
    2,151
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 13, 2006
  5. uto
    Replies:
    3
    Views:
    831
    Michael Hamrah
    Mar 8, 2006
  6. MadHatter51
    Replies:
    1
    Views:
    1,138
    Hakan Lambracht
    May 17, 2006
  7. S_K
    Replies:
    1
    Views:
    533
    IfThenElse
    Oct 2, 2007
  8. S_K
    Replies:
    0
    Views:
    491
Loading...