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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:12:21+00:00 2026-06-04T18:12:21+00:00

Response.End() generates ThreadAbortException . Using HttpContext.Current.ApplicationInstance.CompleteRequest in place of it doesn’t solve the problem.

  • 0

Response.End() generates ThreadAbortException.

Using HttpContext.Current.ApplicationInstance.CompleteRequest in place of it doesn’t solve the problem.

So, can we use Response.Flush() instead of Response.End()

  • 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-04T18:12:23+00:00Added an answer on June 4, 2026 at 6:12 pm

    The Response.Flush() is send to the browser what is on buffer, but is not stop the processing of the page, so it will continue the execution of the next steps.

    What is Response.End() do is to stop the execution steps on the next function call in the asp.net Page Life Cycle. http://msdn.microsoft.com/en-us/library/ms178472.aspx

    And that’s why it need to throw an exception, to throw out of the loop of the series of call.

    One alternative is the Response.Close() but this also is not stop the execution steps and probably you have some other error if you try to send something after the close of the connection with the browser. if you do Response.Close() you need to also do Flush() just before you call it or else browser gets unpredictable data.

    you can also read : Redirect to a page with endResponse to true VS CompleteRequest and security thread

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

Sidebar

Related Questions

I am using the code below to download an Excel file. Once the Response.End()
I have this code in the end of link button click: Response.ContentType = application/zip;
We have a JSON response which can contain null values (e.g. { myValue: null
I have a C# method, see code below, that generates an Excel spreadsheet using
This is my json response : [{customer:{account_id:1,account_number:null,alt_contact:null,alt_phone:null,alt_phone_number:,balance:null,billing_address:341234 sucka ma cocka,billing_city:apple,billing_country:,billing_state:nj,billing_zip_code:021231,company_name:null,contact:null,created_at:2012-03-08T06:02:38-08:00,created_by:1,credit_limit:null,custom_datetime1:null,custom_datetime10:null,custom_datetime2:null,custom_datetime3:null,custom_datetime4:null,custom_datetime5:null,custom_datetime6:null,custom_datetime7:null,custom_datetime8:null,custom_datetime9:null,custom_number1:null,custom_number10:null,custom_number2:null,custom_number3:null,custom_number4:null,custom_number5:null,custom_number6:null,custom_number7:null,custom_number8:null,custom_number9:null,custom_text1:null,custom_text10:null,custom_text11:null,custom_text12:null,custom_text13:null,custom_text14:null,custom_text15:null,custom_text16:null,custom_text17:null,custom_text18:null,custom_text19:null,custom_text2:null,custom_text20:null,custom_text3:null,custom_text4:null,custom_text5:null,custom_text6:null,custom_text7:null,custom_text8:null,custom_text9:null,customer_number:151,customer_source_id:4,customer_type_id:2,customer_type_ref_full_name:null,delivery_method:null,edit_sequence:null,email:null,email_address:apple@adsfsd.com,fax:,first_name:null,full_name:123 Landscaping,id:431,is_active:null,is_statement_with_parent:null,item_sales_tax_ref_full_name:null,item_sales_tax_ref_list_id:null,job_desc:null,job_end_date:null,job_projected_end_date:null,job_start_date:null,job_status:null,job_type_ref_full_name:null,last_name:null,list_id:null,mobile:null,name:123 Landscaping,pager:null,parent_id:null,parent_ref_list_id:null,password:null,phone:234234234,phone_number:234234234,preferred_payment_method_ref_full_name:null,price_level_ref_full_name:null,qb_parent_list_id:null,resale_number:null,sales_rep_ref_full_name:null,sales_tax_code_ref_full_name:null,sales_tax_code_ref_list_id:null,service_address:341234 sucka ma
response.setHeader(keys[i].toString(),value); in a servlet is throwing null pointer exception even though none of keys[i]
Response to : Regular Expression to find a string included between two characters while
XML response <?xml version=1.0 encoding=UTF-8 standalone=yes ?> - <Film> <film_id>1</film_id> <title>ACADEMY DINOSAUR</title> <description>xxx</description> <length>86</length>
Here is my response envelope: <s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/> <s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring xml:lang=en-US>The creator of
I have response stream from a ftp web request that returns binary file. I

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.