I have used Dummy Table here
HTML
<div id="divStudentName" runat="server">
</div>
Namespace
using System.Data;
C#
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
DataTable dt = new DataTable();
dt.Columns.Add("StudentName");
dt.Rows.Add("Andrew");
dt.Rows.Add("John");
dt.Rows.Add("Jake");
foreach (DataRow row in dt.Rows)
{
this.divStudentName.InnerHtml += row["StudentName"] + "<br />";
}
}
}