Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: IE7/8 Cannot download file (when streamed to browser) [27494]

$
0
0
Since upgrading to the new AjaxControlToolkit version (July 2013 Release) streaming of Excel files to the browser has stopped working.

This worked perfectly on older versions of the AjaxControlToolkit (last version I used was 3.031106.0)

I'm basically writing the HTML of a GridView to Response as below;

```
Response.Clear()
Response.AddHeader("content-disposition", "attachment;filename=myexcelsheet.xls")
Response.Charset = ""
Response.ContentType = "application/vnd.xls"

Dim stringWrite As System.IO.StringWriter = New System.IO.StringWriter()
Dim htmlWrite As System.Web.UI.HtmlTextWriter = New HtmlTextWriter(stringWrite)

paycalc_GridView.RenderControl(htmlWrite)
Dim d As String = ""

Response.Write(stringWrite.ToString())
Response.End()

```
Comments: Also, just to add to this; The Gridview is sitting in an UpdatePanel and yes the button is set up as a postback in the triggers section.

Viewing all articles
Browse latest Browse all 4356

Trending Articles