...

View Full Version : html/asp Table



DP196
03-15-2013, 11:11 AM
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
[code]
StringBuilder DisplayProgress() {

StringBuilder str = new StringBuilder;

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



}

In the webpage

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


[code]

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?

Thanks
DP

keeper
04-08-2013, 12: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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum