XML Parsing Error: no element found

Posted by Anilkumar on Stack Overflow See other posts from Stack Overflow or by Anilkumar
Published on 2010-05-07T14:40:49Z Indexed on 2010/05/07 14:48 UTC
Read the original article Hit count: 212

Filed under:

XML Parsing Error: no element found

Line Number 1, Column 1:

I want to download a Excel file. I wrote the data in a html table format and appending to the response. The code is following :

Response.Buffer = false;
Response.Expires = 0;
Response.Clear();
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName);
Response.Write(str);
Response.End();

© Stack Overflow or respective owner

Related posts about c#