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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T14:26:50+00:00 2026-06-08T14:26:50+00:00

i have a handler that generates a csv file and provide the download, this

  • 0

i have a handler that generates a csv file and provide the download, this handler called by button in codebehind on my defoult.aasp like this:

 Response.Redirect("~/Handler.ashx?startDate="+tbStartDate.Text.Trim()+"&endDate="+tbEndDate.Text+"&isCheck="+chkDuplication.Checked.ToString());

now I have a another line after above code were should update my list view, but list view not getting updated, is there any way that I can update the list view after csv download.

Thanks,

  • 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-08T14:26:52+00:00Added an answer on June 8, 2026 at 2:26 pm

    The problem is with your redirect. From the Microsoft documentation:

    Any response body content such as displayed HTML text or
    Response.Write text in the page indicated by the original URL is
    ignored.

    You have a couple of options depending on the processing that needs to occur:

    1. If you do not need to post the page back in order to open the file, you can open a new window in javascript (window.open with a target of ‘_blank’) using your ashx page (including its query string) as the URL.

    2. If your page needs to postback, you can generate the javascript on the server side and have it execute when the page is first reloaded into the browser using Page.ClientScript.RegisterStartupScript.

    We actually use both methods depending on the specific requirements. Generally, we prefer the first approach, even if it means a little more work in javascript, but sometimes postbacks can’t be avoided.

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

Sidebar

Related Questions

I have a Handler class that looks like this: class Handler{ public $group; public
I have a download handler that will download the file when in IE but
I have an ASP.NET web form. This web form has an event handler that
I've got a simple web-page that generates a CSV file that I want the
I have a method that generates a PDF file using Reportlab library: def obtenerPDFNuevoPedido(self,
A simple problem. I have an ASHX handler which generates a report. Unfortunately, this
I have a [SQL 2008] SSIS package that takes a CSV text file and
I have a 2 MB file, not too large, that I'd like to put
We have a requirment which requires to have an Handler that is extended from
I have an event handler that needs to determine a type and execute code

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.