p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   ASP.NET 1.0 and 1.1 Basics (http://p2p.wrox.com/forumdisplay.php?f=60)
-   -   Performance Issue of Execution (http://p2p.wrox.com/showthread.php?t=35063)

bjohnjebastin November 12th, 2005 08:38 AM

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.

jbenson001 November 14th, 2005 11:18 AM

Are you doing an ASP or ASP.NET application?



All times are GMT -4. The time now is 09:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.