View Full Version : html/asp Table

03-15-2013, 12:11 PM
Hi All, I am new to asp.net and in the process of creating a webpage.

I need to create a table in the code behind to display a string and an integer value( in the form of progress bar) in a table.

Job Progress

job1 progress bar........ 20%
job2 progress bar....... 30% etc

I have managed to create this using a function
StringBuilder DisplayProgress() {

StringBuilder str = new StringBuilder;

str.Append("<table><tr><td>>..") etc


In the webpage

<div runat="server" id="ProgressTable"><%=DisplayProgress() %></div>


My question here is
1. Is this the efficient way to create a table...or should i use <asp:table>, or using Table class.
2. Will there be any set back using it this way?


04-08-2013, 01:07 PM
yes this is efficient and .net has its own optimization techniques which are in background while compiling to msil code and then when it is interpreted.

05-03-2013, 03:09 PM
I think that it is the best optimized way of creating table in Asp.net.