yogaboy -> (Hopefully) a quick question (11/15/2004 14:06:55)
Does it take more resources for the server to write a whole web page using Response.writes or is it better to write most of the html and then just slip in a few <% Response.write myRecordis("blah") %> here and there?
Anyone know the answer?
dpf -> RE: (Hopefully) a quick question (11/15/2004 15:10:52)
when the server gets the request for the asp file, it executes the asp code ...including, of course, response.write - so if the whole html page has to be written from the asp, that surely takes more resources than if the server only had to execute smaller amount of asp and then send the html. the server sends 100% html..the question is simply does it write some or all. obviously takes more to write it all
aaronwiles -> RE: (Hopefully) a quick question (11/15/2004 20:30:38)
This is one of those debates that no one actually knows the answer to.
When executing a page with both html and asp code in the web page, the web server is switching from the ASP engine to the err well lets call it the HTML engine, you could say this actually uses more resources as the server is switching from back and fourth and not just using the one resource.
I personally do it this way on the most part (HTML+ASP Mixed) but that is because I find it much easier to troubleshoot and change things, although you will find that most complicated open source ASP coded programs just use ASP and not a mixture of both as the switching between engines takes a little longer to process the page.
So the question is, what you yourself think is quicker...!
Spooky -> RE: (Hopefully) a quick question (11/15/2004 21:42:09)
It used to be that inline asp was slower, however, since IIS5 the opposite is true. The actual time is negligible though. Just code in a way that is easy for you and those following to understand.
yogaboy -> RE: (Hopefully) a quick question (11/17/2004 5:09:09)
Phew! I thought I was killing the server by mixing my asp and html. It must've been that jam doughnut that I dropped in it making it run so slow...[:D]