|
| |
|
|
yogaboy
Posts: 377 Joined: 5/22/2004 Status: offline
|
(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
Posts: 7121 Joined: 11/12/2003 From: India-napolis Status: offline
|
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
_____________________________
Dan
|
|
|
|
aaronwiles
Posts: 200 Joined: 7/5/2004 From: Aaron Wiles Status: offline
|
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...!
< Message edited by aaronwiles -- 11/16/2004 8:29:45 >
_____________________________
You really never learn to swear until you get a computer.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|