Posted on: 5/8/2014 7:28:57 PM | Views : 517

Hi,
I have a csv file and I want on click on the button, the next line of the streamreader to be read and the textboxes to be populated, but the streamreader.ReadLine() function reads only the first line.
Here is that block of code
protected void Button2_Click(object sender, EventArgs e) { var line = reader.ReadLine(); var values = line.Split(','); i = this.Counter; Response.Write("i button 2=" + this.Counter); if (i < line.Length) { ReadList1(); } } private void ReadList1() { Response.Write("counter" + this.Counter); //while (!reader1.EndOfStream) if (!reader1.EndOfStream) { var line = reader1.ReadLine(); v ...

Go to the complete details ...