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 8352745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:03:21+00:00 2026-06-09T09:03:21+00:00

Handling a pdf response from an ashx handler call. I have a generic ashx

  • 0

Handling a pdf response from an ashx handler call.
I have a generic ashx handler in C# 4.0 that creates a pdf for me.
I call this handler from javascript in a browser by building a url to send to the handler.
So my final call to obtain the pdf is this:

 window.open(_url, '_self', false);

the problem i have with this is that i cannot but a spinning gif up to tell the user that the pdf is cooking and will be ready soon. I just don’t have an access point where i can say ‘the report is working hold on a moment’. Because when that call comes back it attempts to open the pdf – which, in my browser, brings up the box asking you to open or save the pdf.

Is there another way I can make this call so that when the pdf doc comes back i can execute some code to make the spinny go away?

  • 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-09T09:03:22+00:00Added an answer on June 9, 2026 at 9:03 am

    Are you opening up the PDF in the same window or in a new window? if a new window, the quick&easy would be to have your link go to a “loading, please wait…” page, which then does a redirect to the ashx page. the “loading please wait” will stay on the screen until the other page is ready to be rendered. Or you could have the ashx file first render a “please wait message”, and then wipe the response and render the PDF once it’s done (trickier).
    If on the same page, you could use some simple jquery/javascript that would call a function that popups a new layer with a “loading please wait..” that the user would see until the page is redirected to the rendered PDF.

    hope this helps

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

Sidebar

Related Questions

I have a resource handler that is Response.WriteFile(fileName) based on a parameter passed through
I need to extract the text from a PDF that has already been transformed
I am trying to find a SDK that can generate PDF from OpenXml. I
I have a event handling method like this: private void btnConfirm_Click(object sender, EventArgs e)
when handling data, i always have to write the following: var dataSourceRequest:URLRequest = new
ExtJS Class Handling is good to handle, but you have to pay it with
I need to implement handling of redelivery of JMS messages in the application that
I ask this question as a followup of this question . A solution that
I am handling the PreviewTextInput event on my window to handle swipes from a
I have a pretty straight forward uploadified page that allows users to upload files,

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.