Re: ASP Code problem

by "Cyanide _7" <leo7278(at)hotmail.com>

 Date:  Thu, 29 Jun 2000 13:50:12 CDT
 To:  pbabcock(at)bgsgroup.com
 Cc:  hwg-languages(at)hwg.org
  todo: View Thread, Original
>OR, for a bit of improved performance:
>
><%
>response.write"<a href=""modifylink.asp?itemno=" &
>Server.URLEncode(RS2("item_id")) & "">" & RS2("title") &"></a>"
>%>
>
>Only one chunk of server code and one .write statement vs. two of each so
>close together.

a novel idea phil, but watch your quotes:

<%
response.write "<a href=""modifylink.asp?itemno=" &
Server.URLEncode(RS2("item_id")) & """>" & RS2("title") & "</a>"
%>

needed an extra right about here ----^
and this should all be one line if im not mistaken? so watch email wrapping.

while were at it phil, can you explain why this is an improvement upon 
performance? i've seen this before and am curious as to the principles 
behind it so i may apply them in the future. thanx! - Cyanide_7

>Phil Babcock
>Lead Web Designer
>BGS Group Inc.
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA