我想在按钮单击时在div中添加html表。我有以下代码,但没有被解雇。谁能帮忙
C#代码
html.Append("< table >");
html.AppendFormat("<tr>");
html.AppendFormat("< td class='logsColName' style='width: 250px;'>Full Name</td>");
html.AppendFormat("<td class='logsColValue'><asp:TextBox ID='FullName' runat='server' Width='250px'></ asp:TextBox > </td>");
html.AppendFormat("</tr>");
html.AppendFormat("< tr>");
html.AppendFormat("< td class='logsColName'>ID Type</td> ");
html.AppendFormat("< td class='logsColValue'><asp:DropDownList ID='BA_IDType' class='chosen - select form - control' Width='250px' runat='server'></asp:DropDownList></td> ");
html.AppendFormat("</tr>");
html.AppendFormat(" < tr> ");
html.AppendFormat("< td class='logsColName'>ID Number</td> ");
html.AppendFormat("< td class='logsColValue'><asp:TextBox ID='IDNumber' runat='server' Width='250px'></asp:TextBox></td> ");
html.AppendFormat("</tr>");
html.AppendFormat("< tr>");
html.AppendFormat("< td class='logsColName'>ID Expiry Date</td> ");
html.AppendFormat("< td class='logsColValue'><asp:TextBox ID='IDExpityDate' runat='server' Width='250px'></asp:TextBox></td> ");
html.AppendFormat("</tr>");
html.AppendFormat("< tr>");
html.AppendFormat("< td class='logsColName'>Investor Number</td> ");
html.AppendFormat("< td class='logsColValue'><asp:TextBox ID='InvestorNumber' runat='server' Width='250px'></asp:TextBox></td> ");
html.AppendFormat("</tr>");
html.Append(" </table> ");
New_BM.Controls.Add(new Literal {Text = html.ToString()});