No this can't be done. The reason is because the include statement is executed before the ASP code is actually parsed. So by the time you come to the ASP logic, the file is already included. The only thing you can do is what vasah20 has suggested. What this actually results in, is all three files in vasah20's example are included but only one is effectively used. This is a limitation of ASP and there is no getting around it. Wushutwist