I have a ASP.NET application with C#. I need to send over large text string generated on the fly from the server. How do I stream my response instead of saving everything in memory (ie, in a string variable) then send in everything at the end?
So here is some more information. I generate my text on the fly like this:
List<Row> results = getRows();
and I would like to stream out like this:
foreach(Row curRow in results){
HttpContext.Current.Response.Write(Row.data1 + " " + Row.data2);
}