Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   RE: Large table creation (http://www.velocityreviews.com/forums/t58133-re-large-table-creation.html)

Yan-Hong Huang[MSFT] 06-25-2003 07:02 AM

RE: Large table creation
 
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" <james.mcleod@uk.symbol.com>
!Sender: "Jim McLeod" <james.mcleod@uk.symbol.com>
!Subject: Large table creation
!Date: Tue, 24 Jun 2003 00:54:01 -0700
!Lines: 32
!Message-ID: <0b5301c33a25$c6616b20$a301280a@phx.gbl>
!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...
!



All times are GMT. The time now is 02:52 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.