Please refer this code
<form id="form1" runat="server">
<div>
<table id="tblData" width="95%" runat="server">
<tr>
<th>
School/College Name
</th>
<th>
Date of Entry
</th>
<th>
Date of Leaving
</th>
<th>
Name of Board/University
</th>
<th>
Exam Passed
</th>
<th>
Division
</th>
<th>
subjects
</th>
<th>
Percentage
</th>
<th>
Year of Passing
</th>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox1" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Width="80px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox3" runat="server" Width="80px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox6" runat="server" Width="85px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox7" runat="server" Width="250px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox8" runat="server" Width="85px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox9" runat="server" Width="80px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox10" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox11" runat="server" Width="80px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox12" runat="server" Width="80px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox13" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox15" runat="server" Width="85px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox16" runat="server" Width="250px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox17" runat="server" Width="85px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox18" runat="server" Width="80px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:TextBox ID="TextBox19" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox20" runat="server" Width="80px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox21" runat="server" Width="80px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox22" runat="server" Width="200px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox23" runat="server"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox24" runat="server" Width="85px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox25" runat="server" Width="250px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox26" runat="server" Width="85px"></asp:TextBox>
</td>
<td>
<asp:TextBox ID="TextBox27" runat="server" Width="80px"></asp:TextBox>
</td>
</tr>
</table>
<asp:Button ID="btnSave" Text="Save" OnClick="Save" runat="server" />
</div>
</form>
C#
protected void Save(object sender, EventArgs e)
{
foreach (HtmlTableRow row in tblData.Rows)
{
List<HtmlTableCell> cells = row.Controls.OfType<HtmlTableCell>().ToList();
if (cells[0].Controls.OfType<TextBox>().ToList().Count > 0)
{
string collegeName = cells[0].Controls.OfType<TextBox>().ToList()[0].Text;
string dateofEntry = cells[1].Controls.OfType<TextBox>().ToList()[0].Text;
string dateofLeaving = cells[2].Controls.OfType<TextBox>().ToList()[0].Text;
string university = cells[3].Controls.OfType<TextBox>().ToList()[0].Text;
string examPassed = cells[4].Controls.OfType<TextBox>().ToList()[0].Text;
string division = cells[5].Controls.OfType<TextBox>().ToList()[0].Text;
string subjects = cells[6].Controls.OfType<TextBox>().ToList()[0].Text;
string percentage = cells[7].Controls.OfType<TextBox>().ToList()[0].Text;
string yearOfPassing = cells[8].Controls.OfType<TextBox>().ToList()[0].Text;
this.SaveRecord(collegeName, dateofEntry, dateofLeaving, university, examPassed, division, subjects, percentage, yearOfPassing);
}
}
}
private void SaveRecord(string collegeName, string dateOfEntry, string dateOfLeaving, string university, string exampassed, string division, string subjects, string percentage, string yearOfPassing)
{
//Save these all parameters
}