<table id="table1" >
<% var list=this.GetData();
for (int i=0;i<list.Count();i++)
{ %>
<tr>
<td>
<% list[i].ToString(); %> //list items are not shown on webpage
</td>
</tr>
<%}
%>
</table>
`
<table id=table1 > <% var list=this.GetData(); for (int i=0;i<list.Count();i++) { %> <tr> <td> <%
Share
Try this
Simply use
<%: list[i] %>instead of<% list[i].ToString(); %>To know more about Asp.net inline tags go here.
But you should consider
Repeaterand otherdata binding controlsprovided by Microsoft already for this purpose.