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

Casey Crookston thelist at lists.evolt.org
Thu Jan 2 09:17:01 2003


You could debate development theory 'till the cows come home, but I
would do it this way:


<!--#include file="IncludePages/DeleteForm.asp"-->
<!--#include file="IncludePages/UpdateForm.asp"-->

' The entire contents of DeleteForm and UpdateForm are wrapped in
Functions, so the code is included but not excuted unless called.
Then...


If Request.Form("theaction") = "DeleteForm" then
	call function DeleteForm
ElseIf Request.Form("theaction") = "UpdateForm" then
	call function UpdateForm
End If


HTH,

Casey