Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > Other ASP.NET > ASP.NET 1.x and 2.0 Application Design
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2004, 06:51 AM
Authorized User
 
Join Date: Jul 2004
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page getting freezed after Response.AddHeader


Please help me! I have tried all options. Nothing works!

I have 2 hyperlinks, Report1 & Report2. On click of Report1, a html table (report) is being displayed on a child frame. On this child page i have a link "Export to Excel", on the click of which the report is getting saved in excel. The code is:

Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader("content-disposition", "attachment; filename=Report.xls")

The excel report gets created. But the problem is: if I click on Report2 hyperlink, the second report is not displayed. The same first report is displayed. On click of :"ExportToExcel", if i click on "Cancel" in Save As dialogbox and then click on Report2, the new report IS DISPLAYED! Surprising!!!!

I tried all possible things like reponse.Clear, etc. Nothing works!!!

Someone please help me get over this problem!!!!


Regards,
Spacy








Similar Threads
Thread Thread Starter Forum Replies Last Post
Response.AddHeader Problem kwilliams Classic ASP Professional 6 November 13th, 2007 06:26 PM
page.response.charset manoj.aggarwal ASP.NET 2.0 Professional 0 August 1st, 2007 03:55 AM
How to make Response.Redirect to page after 5 secs bekim Classic ASP Basics 4 August 20th, 2004 07:35 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.