473,387 Members | 1,517 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,387 software developers and data experts.

Server control vs. <%= %> block to display text ??

Which one of the methods would use less server resources and give better
performance to display data on a page?
Nov 19 '05 #1
3 1075
Marlon:
<%= %> will give more performance..but considering how much more of a PITA
it will be to maintain, you'll be able to afford better hardware if you use
Server controls.

In other words, the 1 nanosecond you'll gain by using <%= %> makes the
question trivial...it shouldn't be about performance but about
maintainability (read development time, likelyhood of bugs, ...)

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Marlon" <ya********@online.nospam> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
Which one of the methods would use less server resources and give better
performance to display data on a page?

Nov 19 '05 #2
....And, by including server side script tags, you are going to lose that
nice separation of code vs. content.

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:uF**************@TK2MSFTNGP14.phx.gbl...
Marlon:
<%= %> will give more performance..but considering how much more of a PITA
it will be to maintain, you'll be able to afford better hardware if you
use
Server controls.

In other words, the 1 nanosecond you'll gain by using <%= %> makes the
question trivial...it shouldn't be about performance but about
maintainability (read development time, likelyhood of bugs, ...)

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Marlon" <ya********@online.nospam> wrote in message
news:OH**************@TK2MSFTNGP14.phx.gbl...
Which one of the methods would use less server resources and give better
performance to display data on a page?


Nov 19 '05 #3
Thanks for Scott and Karl's suggestions.

Hi Marlon,

In addition to the the code maintenance and separation code and content, if
the page where you are to use
<% %> is just for displaying( no much interactive functions), I think <% %>
will be ok since it just output html content into the response stream and
will cause no overhead to the page's ViewState( no like most server
controls which may store much data in the page's Viewstate) which cause the
page's size increased.
Anyway, the server control and controls based page structure is a wonderful
feature makes the web developing much easier and powerful. So using server
controls will always be recommended if you haven't any critical concerns on
performance. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4

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

Similar topics

0
by: Arne Schirmacher | last post by:
I want to display a MySQL database field that can contain HTML markup. If I use <esql:get-string> then I get all of the database field, but all tags are escaped which is not what I want. If I use...
5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
34
by: Mark Moore | last post by:
It looks like there's a pretty serious CSS bug in IE6 (v6.0.2800.1106). The HTML below is validated STRICT HTML 4.01 and renders as I would expect in Opera, FrontPage, and Netscape. For some...
5
by: toylet | last post by:
Attached is some css codes for a website. It has 3 parts: top-bar, side-bar (on the left) and main-body. The top-bar has a mouseover menu called top-menu implemented via ul:hover. When the mouse...
11
by: Les Paul | last post by:
I'm trying to design an HTML page that can edit itself. In essence, it's just like a Wiki page, but my own very simple version. It's a page full of plain old HTML content, and then at the bottom,...
4
by: rob c | last post by:
This is a minor thing and only appears in IE (so far), but I'd like to know to correct it (if possible). Whenever I use a form on a webpage, Explorer always leaves a blank line following the...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
0
by: Eric | last post by:
Visual C++ 2005 Express MVP's and experience programmer's only please!... I need to get the number of lines in a textbox so I can insert them into a listview. The text comes from my database...
28
by: Kent Feiler | last post by:
1. Here's some html from a W3C recommendations page. <P>aaaaaaaaa<DIV>bbbbbbbbb</DIV><DIV>cccccccc<P>dddddddd</DIV> 2.Although I didn't think it would make any difference, I tried it with the...
2
by: GloStix | last post by:
For some reason, FF likes to put a black underline on all my buttons. No matter what I do, it has the line I've tried displaying as block and cursor, anything.. Also I've been trying to get it so...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.