J
Jason Shohet
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
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