Results 1 to 2 of 2

Thread: Download File, then Redirect [2005]

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2007
    Posts
    18

    Download File, then Redirect [2005]

    I need a button to do a response.redirect to two places, is this possible.
    When the button is clicked it runs a procedure to write a file.
    I need the last thing it does to be:

    Code:
    Response.Redirect("filepath/filename")
    'to Download the file
    Response.Redirect("default.aspx")
    'to return them to home
    It obviously doesn't work because it stops at the first redirect command.

    I tried some server.transfer, I tried the response.redirect("file", false).
    All to no avail. Any solution?

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Download File, then Redirect [2005]

    I think you should ask this in the ASP .Net forum.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width