[thelist] [ASP] Server.Execute vs. #include
Casey Crookston
casey.crookston at imibevcore.com
Thu Jan 2 09:17:01 CST 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
More information about the thelist
mailing list