Download basically turns the page into the file, so you can't really process after because the file isn't really downloaded until the page is done and the file is sent to the user and the code stops running.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.