Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8837747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:48:23+00:00 2026-06-14T09:48:23+00:00

Ok so bear with me here. I have an umbraco site which has an

  • 0

Ok so bear with me here. I have an umbraco site which has an external control embedded in it (an ascx file and a dll).

I’m mentioning that it’s umbraco so that you know we have no control over most aspects of the page lifecycle, otherwise it shouldn’t matter.

The control appears on a modal popup window within an iframe and it’s just a form. When you submit the form an email is sent in the code behind and then I want to trigger a PDF download and few seconds later close the modal pop up.

So far this is proving impossible. It seems Response.End() seems to interrupt the control postback. I also tried Response.Flush() or tried without it altogether. Nothing has worked.

Is there way to trigger a download and then continue with the postback? I tried redirecting but I get a redirect error which makes sense that after a response.End() it’s impossible to redirect.

I also tried a jQuery only solution (jQuery.fileDownload.js) but that doesn’t work because of Umbraco’s limitations (cannot add the cookie header on the page).

Running out of options here.
Any suggestion is very welcome

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:48:24+00:00Added an answer on June 14, 2026 at 9:48 am

    For example, you can try to move the code that manages download to a standalone control (or httphandler) and invoke it from js on form submit like this

    $("#yourform").submit(function() {
        $('<form action="/pathtoyourhandler.ashx" method="POST"></form>')
        .appendTo('body').submit().remove();
    });
    

    (that’s actual code from our umbraco project)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new here to stackoverflow, so bear with me. I have a book that
Firstly, bear with me here. I have a custom model binder which is successfully
New guy here so bear with me. Ive got a basic XSL file that
All right. The problem here is pretty abstract. Bear with me. I have a
Im pretty new to CI so bear with me here. I have just setup
I have this: public ActionResult GetBear(int bearId) { return Json(bear); } Here is the
This is the first question I have asked here so bear with me .
I have a search form ( you can see the form here ) that
This is a convoluted example so bear with me: I have a script that
Beginner programmer here. So bear with me. I have a simple python program. print

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.