Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RE: Large table creation

Reply
Thread Tools

RE: Large table creation

 
 
Yan-Hong Huang[MSFT]
Guest
Posts: n/a
 
      06-25-2003
Hello Jim,

There should be no other way to do so. The for loop could be used to create
a big talbe.

Have you tested the page to see if it is really slow? The work is done by
server side and should not hurt performance much.

Please feel free to post here if you have any more concerns.

Best regards,
yhhuang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.gotdotnet.com
--------------------
!Content-Class: urn:content-classes:message
!From: "Jim McLeod" <(E-Mail Removed)>
!Sender: "Jim McLeod" <(E-Mail Removed)>
!Subject: Large table creation
!Date: Tue, 24 Jun 2003 00:54:01 -0700
!Lines: 32
!Message-ID: <0b5301c33a25$c6616b20$(E-Mail Removed)>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Thread-Index: AcM6JcZhnNkE8opfTC6DHEaafa77MA==
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:154515
!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!Hi Guys,
!
!I'm using the following embedded 'For loops' to create
!two pretty big tables. Lets say 100+ cells, by 100+ rows.
!
!=====================================
!for(long RowCounter = 0; RowCounter < Rows; RowCounter++)
!{
! TableRow = new
! System.Web.UI.HtmlControls.HtmlTableRow();
!
! for(long CellCounter = 0; CellCounter < Cells;
! CellCounter++)
! {
! TableCell = new
! System.Web.UI.HtmlControls.HtmlTableCell();
!
! TableRow.Cells.Add(TableCell);
! }
!
! TableReference.Rows.Add(TableRow);
!}
!=====================================
!
!As you can imagine this code isn't the most efficient for
!creating such large structures. Is there any .NET
!Framework technique for speeding the creation of these
!tables?
!
!Best regards,
!
!Jim...
!

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to (batch) set EXIF date taken and IPTC creation date and creation time for photos with filenames YYMMDDHHMMSS#.jpg? guercheLE@gmail.com Digital Photography 1 10-04-2005 07:15 PM
From .xsd to table creation Maury ASP .Net 0 07-04-2005 06:24 AM
large dictionary creation takes a LOT of time. possibilitybox Python 12 04-30-2005 05:35 PM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Could not load type VTFixup Table from assembly Invalid token in v-table fix-up table. David Williams ASP .Net 2 08-12-2003 07:55 AM



Advertisments