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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:14:35+00:00 2026-05-13T08:14:35+00:00

I have an application that creates an audio file. I need to provide a

  • 0

I have an application that creates an audio file. I need to provide a link that brings up the save dialog when cicked for users to save the file.

I have the download button setup as a link button. From my research it appears that to be able to force bringing up the save dialog, I need to add the following code:

Response.ContentType = "audio/wav";
Response.AppendHeader("Content-Disposition", "attachment; filename=blah.wav");
Response.WriteFile(@"blah.wav");
Response.End();

When I add this to the event handler of the link button, I get the error:

"Line: 4723
Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'RIFF?WAVEfmt '."

So, I decided to try it out by creating an intermediate page that facilitates the download. On the Download linkbutton event handler, I added a Respose.Redirect to this intermediate page and on the Page_Load of the page, I added the code snippet above. When setup this way, IE, blocks the download by saying:

"To help protect your security, Internet Explorer blocked his site from downloading files to your computer. Click here for options" When I click and select “Download file”, I do not get the Save dialog.

My questions:
1. Can I eliminate the intermediate page?
2. If I can’t how do I not have IE prompt the user for action?

  • 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-05-13T08:14:35+00:00Added an answer on May 13, 2026 at 8:14 am

    Maybe your Response contains something before hitting your code, did you try a Response.Clear() before outputting anything?

    Also, there shouldn’t be any Response.Write after your Response.End().

    This would fix the first error and would eliminate the need for an intermediate page.

    I already done this before so I don’t see a limitation.

    Try to find what’s modifying the Response.

    Thanks

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

Sidebar

Related Questions

I have an application that creates, and destroys thousands of objects. Is it worth
I want to run javascript/Python/Ruby inside my application. I have an application that creates
I have an information retrieval application that creates bit arrays on the order of
I have an application that gets installed with a Wise installer (EDIT: Wise creates
We have an internal .NET case management application that automatically creates a new case
I have an application that has created a number of custom event log sources
I have a C application that I've created in VS2008. I am creating a
I have built a MS Access 2007 application that can create reports files in
I have created an application that writes some data to the root folder of
I have created an application that runs in the taskbar. When a user clicks

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.