I have built a website that allows user to upload csv file to datatable. Maybe I don't quite understand the purpose of memory stream.
I write to stream by the below code
public partial class _Default : System.Web.UI.Page
protected DataTable dtable;
MemoryStream memStm = new MemoryStream();
protected void Unnamed2_Click(object sender, EventArgs e)
...create table here
GridView1.DataSource = table;
then in a new section
protected void Button1_Click(object sender, EventArgs e) //launch program
DataTable newTable = new DataTable();
GridView2.DataSource = newTable;
I thought when I wrote to memory, I could always access it, any ideas what I'm doing wrong?