Hiii
plz help me how to export the access data or Table into CSV format using Asp.net with c#.
Hiii
plz help me how to export the access data or Table into CSV format using Asp.net with c#.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Bechir BejaouiRank #144 · 15.9K reputationPosted Nov 19, 2008, 12:03 PM EST
foreach (DataTable t in ds.Tables)
{
oList.Add(t.TableName);
oList.Add(Environment.NewLine);
foreach (DataRow r in dt.Rows)
{
foreach (DataColumn c in dt.Columns)
{
oList.Add(c.Caption + " " + r[c].ToString() + " ");
}
}
oList.Add(Environment.NewLine);
oList.Add(Environment.NewLine);
}
System.IO.File.WriteAllLines(@"C:\myFile.csv", oList.ToArray());
oConn.Close();
MessageBox.Show("Done");