C
Carole MacDonald
I've created a form to gather a user's contact information. Upon
clicking "submit", the app verifies the data. After verification, I
need 2 things to happen:
1) a thank you message to appear
2) a file to be downloaded to the user
I can do one of the two, but not both. I'm using either Redirect() to
the file (it is an exe, so it is causing the open/save dialog to come
up), or I can stream it directly to the Response stream. But doing
either of those cancels out any other actions to the page. So I can't
turn off the panel with the form and turn on the thank you panel. The
URL to the actual file must be hidden, so I can't just include a link
on the thank you page to actually do the download. I could make a
link with some authentication information, but I'd rather not have to
do the authentication twice.
I tried putting a form.submit() inside the thank-you message panel,
but that is being executed before the page is actually rendered. So
the download happens, but the contact form is still displayed, instead
of the thank you.
Any suggestions how to solve this problem?
Thanks,
Carole
clicking "submit", the app verifies the data. After verification, I
need 2 things to happen:
1) a thank you message to appear
2) a file to be downloaded to the user
I can do one of the two, but not both. I'm using either Redirect() to
the file (it is an exe, so it is causing the open/save dialog to come
up), or I can stream it directly to the Response stream. But doing
either of those cancels out any other actions to the page. So I can't
turn off the panel with the form and turn on the thank you panel. The
URL to the actual file must be hidden, so I can't just include a link
on the thank you page to actually do the download. I could make a
link with some authentication information, but I'd rather not have to
do the authentication twice.
I tried putting a form.submit() inside the thank-you message panel,
but that is being executed before the page is actually rendered. So
the download happens, but the contact form is still displayed, instead
of the thank you.
Any suggestions how to solve this problem?
Thanks,
Carole