Go Back   CodingForums.com > :: Server side development > ASP.NET

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-15-2013, 11:11 AM   PM User | #1
DP196
New to the CF scene

 
Join Date: Jan 2013
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
DP196 is an unknown quantity at this point
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
DP196 is offline   Reply With Quote
Old 04-08-2013, 12:07 PM   PM User | #2
keeper
New to the CF scene

 
Join Date: Mar 2013
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
keeper is an unknown quantity at this point
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.
keeper is offline   Reply With Quote
Old 05-03-2013, 02:09 PM   PM User | #3
annaharris
New Coder

 
Join Date: May 2012
Location: USA
Posts: 83
Thanks: 0
Thanked 4 Times in 4 Posts
annaharris is an unknown quantity at this point
I think that it is the best optimized way of creating table in Asp.net.
annaharris is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:41 PM.


Advertisement
Log in to turn off these ads.