//ASPX PAGE
<div id="nonPrintable">
<table width="98%" border="0" cellspacing="2" cellpadding="0" align="center">
--
--</table>
</div>
<br/>
<div id="printReport" runat="server">
</div>
I am writng table from server side
Response.Write("<table width='95%' border='0' cellpadding='0' cellspacing='0' align='center'>");
Response.Write("<tr class='tdcolbg'>");
Response.Write("<td>");***SOME CONTENT***
Response.Write("</td>");
Response.Write("</tr>");
Response.Write("</table>");
I have add server side table content to div printReport How can i add it.
Instead of using div use a label control and save the content in a stringbuilder object and then assign it to label text property. Example below