Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Performance-related questions about an ASP.NET page...

Reply
Thread Tools

Performance-related questions about an ASP.NET page...

 
 
Sammy
Guest
Posts: n/a
 
      02-15-2005
1- Is it better to use TABLEs or DIVs in an HTML/ASP.NET page? Why?
2- Is it better to form your response (HTML page) result from your ASP.NET
page mostly using server side controls, or HTML controls. For example, if
you want to display the word "Welcome" is it better to use an asp:label
control or just type it using a P tag?

Thank you.


 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      02-15-2005
Sammy:
The table/div issue has nothing to do with ASP.Net...it's more a general
html question...a nice thing about tables is how well they let you structure
data using server-side controls via the Table, TableRow and TableCell
controls. If you do a google search for "Table vs Div" you'll get a lot of
results. The main issue i believe is accessibility....

Your second question is loaded, but i'll answer it as best as possible.
First off, it's pretty obvious that

#1
<p>Hello World</p>

is going to be faster than

#2
<Asp:label id="blah" runat="server" />
....
OnPage_Load
blah.text = "hello world"
end sub

in the first example you are simply sending it as plain text to the browser
to render. In the 2nd example, ur doing the same thing, but before that you
are creating an object on the server and doing some other magic.

The real point though is that it shouldn't matter. The debate is purely
speculative...the microsecond (literally) that you'll save in one way
doesn't equate much compared to the flexibility you gain the other. If the
flexiliby isn't, and never will be needed, then do it the first way..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


"Sammy" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 1- Is it better to use TABLEs or DIVs in an HTML/ASP.NET page? Why?
> 2- Is it better to form your response (HTML page) result from your ASP.NET
> page mostly using server side controls, or HTML controls. For example, if
> you want to display the word "Welcome" is it better to use an asp:label
> control or just type it using a P tag?
>
> Thank you.
>
>



 
Reply With Quote
 
 
 
 
Sammy
Guest
Posts: n/a
 
      02-15-2005
Thank you!

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:(E-Mail Removed)...
> Sammy:
> The table/div issue has nothing to do with ASP.Net...it's more a general
> html question...a nice thing about tables is how well they let you
> structure
> data using server-side controls via the Table, TableRow and TableCell
> controls. If you do a google search for "Table vs Div" you'll get a lot
> of
> results. The main issue i believe is accessibility....
>
> Your second question is loaded, but i'll answer it as best as possible.
> First off, it's pretty obvious that
>
> #1
> <p>Hello World</p>
>
> is going to be faster than
>
> #2
> <Asp:label id="blah" runat="server" />
> ...
> OnPage_Load
> blah.text = "hello world"
> end sub
>
> in the first example you are simply sending it as plain text to the
> browser
> to render. In the 2nd example, ur doing the same thing, but before that
> you
> are creating an object on the server and doing some other magic.
>
> The real point though is that it shouldn't matter. The debate is purely
> speculative...the microsecond (literally) that you'll save in one way
> doesn't equate much compared to the flexibility you gain the other. If
> the
> flexiliby isn't, and never will be needed, then do it the first way..
>
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "Sammy" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> 1- Is it better to use TABLEs or DIVs in an HTML/ASP.NET page? Why?
>> 2- Is it better to form your response (HTML page) result from your
>> ASP.NET
>> page mostly using server side controls, or HTML controls. For example, if
>> you want to display the word "Welcome" is it better to use an asp:label
>> control or just type it using a P tag?
>>
>> Thank you.
>>
>>

>
>



 
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
Few Questions (HW questions already answered by me) padh.ayo@gmail.com C Programming 10 12-06-2006 05:48 PM
Malloc and free questions - learner questions pkirk25 C Programming 50 10-04-2006 02:22 PM
Questions on Canon 300D and etc. questions regarding digital photography Progressiveabsolution Digital Photography 12 03-24-2005 05:18 PM
Newbie questions - Couple of VC++ questions regarding dlls and VB6 Ali Syed C Programming 3 10-13-2004 10:15 PM
Re: Questions....questions....questions Patrick Michael A+ Certification 0 06-16-2004 04:53 PM



Advertisments