/ Published in: C#
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
foreach(DataRow row in dr.Table.Rows) { int colCount=0; foreach(DataColumn column in dr.Table.Columns) { Response.Write(dr.Table.Columns[colCount].ColumnName + ": " + dr[column].ToString() + "<br />"); colCount ++; } }