Datagrid to Excel

J

Juergen

Hi

My web application is exporting a Datagrid to excel (see sourcecode below)
This working fine with about 4000 records. If more then 4000 should be
exported it is no longer working (page cannot be displayed). Does anyon
have an idea

Many Thanks in advanc

Juerge

Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
Response.Buffer = true

MasterGrid.EnableViewState = false

System.IO.StringWriter tw = new System.IO.StringWriter()
System.Web.UI.HtmlTextWriter hw = new System.Web.UI.HtmlTextWriter(tw)



RenderControl(hw)

Response.Write(tw.ToString())



Response.End()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top