Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > export to excel

Thread Tools

export to excel

Posts: n/a
On my page I'm using an updatepanel, updateProgress, and a ModalProgress,
everything works great But when I try to export my GridView to excel I'm
getting the following error message:

Sys.WebForms.PageRequestManagerParserErrorExceptio n: The message received
from the server could not be parsed. Common cause for this error are when
the response is modified by calls to Response.Write(), response filters,
HttpModules, or server trace is enable.

Details: Error parsing near '<div>
<table cells'.

How can I get my GridView to export to excel when I have it within the panel
and using the updateProgress and ModalProgress panel with it?
Here is my export code;

Response.AddHeader("content-disposition", "attachment;
Response.Charset = "";
Response.ContentType = "application/ouput.xls";
System.IO.StringWriter stringWrite = new
System.Web.UI.HtmlTextWriter htmlWrite = new

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export to Excel (Default File Type - Excel) =?Utf-8?B?SGVtYW50IFNpcGFoaW1hbGFuaQ==?= ASP .Net 15 05-21-2009 12:01 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
Export to excel in using excel template Grey ASP .Net 4 10-17-2007 08:08 AM
using Microsoft Excel image for Export to Excel button =?Utf-8?B?U3JpZGhhcg==?= ASP .Net 0 12-09-2005 08:58 PM
Invalid export DLL or export format =?Utf-8?B?RGF2aWQgVmFsbGU=?= ASP .Net 0 10-29-2003 11:46 AM