DebugBar Forums
 
 HOME 
 DOWNLOAD 
 BUY 
 DOC / WIKI 
 FORUM 
 CONTACT 
Stay tuned : rss feed

Forum Home


advanced search


You are not logged in.

Announcement

When reporting a problem or a bug :
* Provide your OS version (INCLUDING service pack) and installed IE version.
* Provide your IETester version
* Provide the IE Tab version opened to generate the problem
* Provide a test case with a sample url or sample code to reproduce the problem
* Provide a step by step explanation on how to reproduce the problem.
* If needed provide additional information.

Thanks.

#1 2010-03-26 14:21:09

psubra.varma
New member
Registered: 2010-03-26
Posts: 1

IE8 problem: Export griddata into CSV

export asp.net gridview data in .csv file. it is not working IETester (IE8 version). It is wokring open IE8 browser seperately.

OS: Windows XP SP3

string attachment = "attachment; filename=sample.csv";

                HttpContext.Current.Response.Clear();
                HttpContext.Current.Response.ClearHeaders();
                HttpContext.Current.Response.ClearContent();
                HttpContext.Current.Response.AddHeader("content-disposition", attachment);
                HttpContext.Current.Response.ContentType = "application/octet-stream";

StringBuilder csvString = new StringBuilder();
// Loop data add to csvString

HttpContext.Current.Response.BinaryWrite(ASCIIEncoding.Unicode.GetBytes(csvString.ToString()));
                HttpContext.Current.Response.End();

Last edited by psubra.varma (2010-03-26 14:34:20)

Offline

 

#2 2010-03-26 16:14:23

fabrice
DebugBar Support
From: San Francisco, CA, USA
Registered: 2007-11-08
Posts: 1182
Website

Re: IE8 problem: Export griddata into CSV

Hi,

Can you send an url where I can see the problem ?

thanks.

Offline

 

Partners : Debugbar | Mobilier de bureau | Debugbar Wiki | IEForge | Lampes design | La fourmi créative