I'm building a dynamic website with ASP file Includes, i'm running into "Name redefined" errors as sometimes two files will Dim the same variable (and I want to use Option Explicit). I REALLY don't want to give each file unique variable names as it'll be hell to copy paste code pieces around.
<!--#INCLUDE FILE="file1.asp" -->
<!--#INCLUDE FILE="file2.asp" -->
Microsoft VBScript compilation (0x800A0411)
Also I understand Subs and Functions will delete internally declared variables after losing scope, i'm looking for a more robust solution.
Thanks in advance!