Response.Write Vs. HTML Tags

Results 1 to 2 of 2

Thread: Response.Write Vs. HTML Tags

  1. #1
    Hemant Guest

    Default Response.Write Vs. HTML Tags

    I am developing an ASP Application. I can generate the HTML content using response.write and using the HTML tags as shown below.<BR><BR>&#060;% For i = 0 to 5<BR> Response.Write "Number" & i & "=" & i & "<BR>"<BR> Next <BR>%&#062;<BR><BR>or<BR><BR>&#060;% For i = 0 to 5 %&#062;<BR> Number &#060;%=i%&#062; = &#060;%=i%&#062;<BR><BR>&#060;% Next %&#062;<BR><BR> Out of the above t, which one is the most effective. Using which option the web pages will be loaded comparitively faster. This is just an example. So please help me out.

  2. #2
    Join Date
    Dec 1969

    Default RE: Response.Write Vs. HTML Tags

    in general, you should keep the number of delimiters (&#060;%%&#062;) to a bare minimum (which is not to say it wouldn&#039t be better to drop out of &#039ASP mode&#039 for a large amount of HTML, but if you&#039re doing a lot of switching, cut it down and use response.write <BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts