473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

12 tables on aspx page: A performance hit?

Someone in my group created an aspx with 12 tables on it, each with several
rows in the table. In codebehind, we often make 1 or more tables visible /
invisible. (However within each table, there is no need to make individual
rows visible / invisible). I always believed that tables are much more
overhead than just having 1 table with lots of rows (Is that true?). So, I
suggested,

"Just have 1 table, and the <tr> 's we'll make invisible by putting
runat_server = true in the <tr> tags of that table". But there's 1 issue we
have with this, that maybe someone here can help me with:

If we have 1 table with 12 <tr>'s (instead of 12 tables), we still have
items within each <tr> that need to be arranged vertically. Like, 2
datagrids one on top of the other for example. I've seen sometimes that
<br> tags don't work in some browser resolutions / fonts: ie, those 2
datagrids that should be one-on-top of the other may appear on the same row,
unless you put in like, 5 <br> tags or more! Is there a way to avoid this
issue? If so, the 1 table + 12 <tr>'s will work.

OTOH, is there truly a significant performance hit by having 12 tables, vs 1
table with 12 rows, or is this just an old-wives tale and with .NET, it
doesn't make much difference either way? :)

TY Jason Shohet
Nov 18 '05 #1
1 1128
Hi Jason,

First, let me say that while tables can cause "slight" delays in page
rendering, it's not much. And, if the table is built correctly (widths are
specified and no contradictory instructions given), there will be virtually
no delay.

Having said that, you could turn on page tracing in .NET and see for
yourself with one page that has the tables and one that doesn't.

As for your <BR><BR><BR><BR> question/issue...You are right that adding
vertical spacing to a page/table is sometimes tricky, but this is an HTML
issue, not a .NET one. The best way to embed empty vertical space in a
table or page is to add:

<P>&nbsp;</P> wherever that space needs to be. No browser will ignore that.
If you plant that into a row of a table, you may find that clears up the
issue.

" Jason Shohet" <as****@hotmail.com> wrote in message
news:e4**************@TK2MSFTNGP11.phx.gbl...
Someone in my group created an aspx with 12 tables on it, each with several rows in the table. In codebehind, we often make 1 or more tables visible / invisible. (However within each table, there is no need to make individual rows visible / invisible). I always believed that tables are much more
overhead than just having 1 table with lots of rows (Is that true?). So, I suggested,

"Just have 1 table, and the <tr> 's we'll make invisible by putting
runat_server = true in the <tr> tags of that table". But there's 1 issue we have with this, that maybe someone here can help me with:

If we have 1 table with 12 <tr>'s (instead of 12 tables), we still have
items within each <tr> that need to be arranged vertically. Like, 2
datagrids one on top of the other for example. I've seen sometimes that
<br> tags don't work in some browser resolutions / fonts: ie, those 2
datagrids that should be one-on-top of the other may appear on the same row, unless you put in like, 5 <br> tags or more! Is there a way to avoid this
issue? If so, the 1 table + 12 <tr>'s will work.

OTOH, is there truly a significant performance hit by having 12 tables, vs 1 table with 12 rows, or is this just an old-wives tale and with .NET, it
doesn't make much difference either way? :)

TY Jason Shohet

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
8
by: BlueBall | last post by:
I am writing some kind of network testing tool and I have wrote the following code in ASP.NET with C# int size= 10048576; // around 10 MB data string buffer = ""; for (int j=1; j<=1024;...
1
by: Gaye Kruchten | last post by:
Hi! I'm just getting starting in web development using ASP.NET and have a very basic question. I have a web page that captures name and address information. I want to pass this information on...
0
by: Santa | last post by:
I am using Fritz Onion's "Asynchronous Pages" approach as mentioned in the article http://msdn.microsoft.com/msdnmag/issues/03/06/Threading/default.aspx to increase the performance of my ASPX...
1
by: digitalego | last post by:
Sorry if the title is a little confusing... Here is the problem. I am working with a "default.aspx" page that uses a user control I made: ------------------------------ | default.aspx ...
21
by: matvdl | last post by:
I have a system that was originally developed in asp - the pages are saved in SQL (there are over 10,000 pages) and saved to a temp directory in the server when requested by a client. I have...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
19
by: Shwetabh | last post by:
Hi, I have two tables: Code and Color. The create command for them is : create table Color( Partnum varchar(10), Eng_Color char(10), Span_Color char(20), Frch_Color char(20), CONSTRAINT...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.