navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

(Hopefully) a quick question

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> (Hopefully) a quick question
Page: [1]
 
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

(in reply to yogaboy)
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.

(in reply to dpf)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to aaronwiles)
yogaboy

 

Posts: 377
Joined: 5/22/2004
Status: offline

 
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...:)

Thanks people, much appreciated as always.

(in reply to Spooky)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> (Hopefully) a quick question
Page: [1]
Jump to: 1





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