问题描述:

I am trying to add table data from data table into HTML report.

I need to add rows one by one automatically, so that all the values passed in coding as ID to be inserted in table of HTML report. My table has only one row.

<tbody>

<tr>

<td>#value1#</td>

<td align="center">#value2#</td>

<td align="center">#value3#</td>

<td align="center">#value4#</td>

<td align="center">#value5#</td>

</tr>

</tbody>

网友答案:

Have you tried to generate your html server side and put it into a HtmlContainerControl.InnerHtml property?

https://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontainercontrol.innerhtml(v=vs.110).aspx

If this is not applicable to you, please provide more info about your project (desktop, asp.net)

相关阅读:
Top