View Single Post
  #1 (permalink)  
Old November 12th, 2005, 08:38 AM
bjohnjebastin bjohnjebastin is offline
Registered User
 
Join Date: Nov 2005
Location: Mumbai, Maharastra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Performance Issue of Execution

Hi frns,

I like to discuss the following issue:

Which code gives optimum performance and runs faster?

Writing the html tags within <%...%> or just mixing html tags and ASP coding. For eg.,
<%
response.write "<table>"
while not rs.EOF
 response.write "<tr><td>" & rs("Empid") & "</td></tr>"
 rs.movenext
wend
response.write "</table>"
%>

OR

<table>
<%
while not rs.EOF
%>
 <tr><td>
<%
 response.write rs("Empid")
%>
 </td></tr>
<%
 rs.movenext
wend
%>
</table>


Regards,
John Jebastin,
Mumbai, India.