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

Forum statistics

Threads
474,179
Messages
2,570,956
Members
47,509
Latest member
Jack116

Latest Threads

Top