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

  • Home
  • SEARCH
  • 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 8204755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:59:20+00:00 2026-06-07T07:59:20+00:00

I am developing a web app with an ASP server side and I use

  • 0

I am developing a web app with an ASP server side and I use an iframe for data push.

An ASP handler flushes every once in a while some javascript to the iframe:

context.Response.Write("<script language='javascript'>top.update('lala');</script>");
context.Response.Flush();

My problem is that sometimes, when I receive the data, I don’t get the full text.
For example I will receive this : <script language='javascript'>update('lala');</
Unfortunately this prevents the javascript code from being executed if no other data is to come during the next second or so.

One workaround I have is to have a thread flushing ‘……….’ every 500ms. (Then I will receive script>...... which will complete my javascript.)

However I am sure there must be a way to have Response.Flush() sending the whole chunk of data.
Does someone have an idea on how to use properly Response.Flush() ?

Thank you!

Charles

  • 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-07T07:59:21+00:00Added an answer on June 7, 2026 at 7:59 am

    One of my coworkers figured out the problem. Gzip compression was enabled on IIS, which was preventing the web browsers getting full chunks of data.

    Among the solutions:

    Disable compression for all websites:

    For IIS 5.1, go to Control Panel/Administrative Tools/Internet Information Services. Right click on Web Sites, click on properties and remove the ISAPI filter Compression.

    For IIS 7, go to My Documents/IISExpress/config/applicationHost.config and change the part httpCompression so that compression is not enabled for your particular page.

    Disable compression just for your website:

    In the web.config file of your application, add the line <urlCompression doStaticCompression="true" doDynamicCompression="false"/> under the section <system.webServer>.

    Disable compression for a particular web page or a particular request

    These good guys found a way to do it:

    Can gzip compression be selectively disabled in ASP.NET/IIS 7?

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

Sidebar

Related Questions

I am developing asp.net mvc web app with MongoDB as the data storage. I
I'm developing web app that user can save his/her work to server. The data
I am developing a web app base on this guide: http://www.asp.net/data-access/tutorials/declarative-parameters-cs I am able
I've been developing an asp.net web app using VS studio. I'm using SQL Server
We're developing this ASP.NET web app with multiple users on different browsers. One of
I'm developing an ASP.NET Web app and would like the user to be able
So I have been developing a small ASP.NET web app in C# for my
I am developing an asp.net web app in which I am using a span
I am developing an asp.net MVC web app in which I am using Linq
I am developing web app using asp.net. I have plenty of javascript files which

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.