|
html/asp Table
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
|