我有这张桌子
<div id="ConversationDIv" runat="server">
<table border="1" id="tbl">
<tr>
<td>blah blah</td>
</tr>
</table>
</div>
<asp:Button id="Insert" onCLick="Insert_Click" Text="addNew" ></asp:Button>
C# :
protected void Insert_Click(object sender,EventArgs e)
{
var html = new HtmlAgilityPack.HtmlDocument();
html.LoadHtml(ConversationDIv.InnerHtml);
var table = html.DocumentNode.SelectNodes("table").FirstOrDefault();
// how can I add a new row to table ?
}
我想在表中添加一个新行,我该怎么做?