[thelist] [ASP] Server.Execute vs. #include

Ken Schaefer ken at adOpenStatic.com
Wed Jan 1 16:52:01 CST 2003


Chris is correct.

However, I would add:
a) there are different scoping rules when using <!-- #include --> versus
server.execute()

b) I would not recommend programming where you "include" (which ever way you
do it) large slabs of inline code. It's usually (but not always) an
indication of messy, spaghetti logic. Look at creating code libraries of
reusable routines and/or using classes.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Chris W. Parker" <cparker at swatgear.com>
Subject: RE: [thelist] [ASP] Server.Execute vs. #include


: > -----Original Message-----
: > From: Jacques Capesius [mailto:jacques_capesius at cnt.com]
: > Sent: Tuesday, December 31, 2002 9:29 AM
: > To: 'Evolt'
: > Subject: [thelist] [ASP] Server.Execute vs. #include
:
: > Can you achieve this conditional document inclusion with the
: > following line
: > of code?
: >
: > If Request.Form("theaction") = "DeleteForm" then
: > Server.Execute ("IncludePages/DeleteForm.asp")
: > ElseIf Request.Form("theaction") = "UpdateForm" then
: > Server.Execute ("IncludePages/DeleteForm.asp")
: > End If
:
: yes.
:
:
: chris.




More information about the thelist mailing list