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

Forum Home


advanced search

You are not logged in.

Announcement

Forums are now closed as we moved them to google groups. You can use the following Google Groups to discuss about DebugBar and IETester products:

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

psubra.varma
New member

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 13:34:20)

Offline

 

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

fabrice
DebugBar Support

Re: IE8 problem: Export griddata into CSV

Hi,

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

thanks.

Offline