Is there a better way?

M

MD Websunlimited

Thomas,

This article looks at a sample in an optimized loop it is not the same as having:

<% =rs("FirstName") %>
<br>
<% =rs("LastName") %>
<br>
<% =rs("Address1") %>

The MS KB article that I references IIS5.0 so I don't see where you came to the conclusion that is addresses only IIS 4.0 At the
bottom of the KB:


Professional Active Server Pages 3.0, Wrox Press. (Especially Chapter 26: Optimizing ASP Performance, by George Reilly and
Matthew Gibbs)
a.. Microsoft Internet Information Services 5.0 Resource Guide (bundled with Windows 2000 Server Resource Kit, Microsoft Press.
b.. Microsoft Internet Information Server Resource Kit (for IIS 4.0), Microsoft Press.
c.. Programming Distributed Applications with COM and Microsoft Visual Basic 6.0 by Ted Pattison, Microsoft Press.
d.. Effective COM by Don Box, Keith Brown, Tim Ewald, and Chris Sells; Addison-Wesley.
e.. Developing Web Usability: The Practice of Simplicity by Jakob Nielsen, New Riders.
 
M

MD Websunlimited

Larry,

The equal symbol is just short hand for writing response.write. Thomas and my debate is about mixing text with code.
 
M

MD Websunlimited

It is faster to write:

response.write rs("FirstName") & "<br>" & rs("LastName") & "<br>" & rs("Address1")


Than writing
<% =rs("FirstName") %>
<br>
<% =rs("LastName") %>
<br>
<% =rs("Address1") %>

What's your time worth?
<smile>
 
T

Thomas A. Rowe

I disagree! The reference I provided explains how a Classic ASP page is
processed under IIS 5 and shows my method as being the better choice in
terms of overall "speed" performance vs. IIS4, where using the method you
prefer, seem to be a better coding choice.

See:
http://www.4guysfromrolla.com/webtech/010202-1.shtml

However, as the author indicating at the bottom of the first link provided,
it is all up to the individual which one to use, neither is bad or as you
put it "poor" programming.

Bottom-line: You code your way, and I will code my way and help folks here
in the way I know best. Everyone that does write HTML, ASP or JavaScript
coding, has or develops their own method of working, which doesn't make the
method they choose, right or wrong.

When I original post my reply, I didn't say that it was the best or the only
way to accomplish the results the user was looking to achieve, which he was
able to do. Second, my reply was actually a clarification of Kevin Spencer's
reply to the user, which happen to be the same method I use

I would appreciate you not labeling my method of coding as "poor" bad or
whatever, just because you prefer to use another method. I don't label your
J-bots products in a negative way, just because I prefer not to use them (or
any other add-ins for that matter).

I don't have a problem with you (or anyone) correcting a post of mine,
however I will take issue, if the tone of the response is such that my
suggestion/solution, etc. is wrong when the newly provided
suggestion/solution, is strictly based on the personal preferences of the
poster.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle,
MS KB Quick Links, etc.
==============================================


MD Websunlimited said:
Thomas,

This article looks at a sample in an optimized loop it is not the same as having:

<% =rs("FirstName") %>
<br>
<% =rs("LastName") %>
<br>
<% =rs("Address1") %>

The MS KB article that I references IIS5.0 so I don't see where you came
to the conclusion that is addresses only IIS 4.0 At the
bottom of the KB:


Professional Active Server Pages 3.0, Wrox Press. (Especially
Chapter 26: Optimizing ASP Performance, by George Reilly and
Matthew Gibbs)
a.. Microsoft Internet Information Services 5.0 Resource Guide (bundled
with Windows 2000 Server Resource Kit, Microsoft Press.
b.. Microsoft Internet Information Server Resource Kit (for IIS 4.0), Microsoft Press.
c.. Programming Distributed Applications with COM and Microsoft Visual
Basic 6.0 by Ted Pattison, Microsoft Press.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top