<%Script%> and HTML <%=on%> the <%same%> page
Hi Everybody.
I was just wondering if other than readability, is there any reason not to switch between script and HTML in ASP pages. As I understand it the parser parses (thats why we call it a parser, funny that. One Fish, Two Fish, Red Fish, Blue Fish) the page and any HTML code just passes righty on through. Does this activity take more time if the code swaps between HTML and Script more often?
I get the feeling that the performance difference maybe very small but part of this is just curiosity.
Any other reason I should or shouldn't use Response.Write for all those Table setup lines?
Thanks
Paul Curtis
P.S. Can I have a Fish Smile?
Peter J. Boettcher posted this at 13:41 — 14th November 2001.
They have: 812 posts
Joined: Feb 2000
If it's a small page then you're not going to notice that much of a performance gain from doing your response.write in a block, but it is better, both performance, and readability wise, if you can do a mass response.write. Plus then you'll be better prepared for .Net
PJ | Are we there yet?
pjboettcher.com
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.