Hi all,
I have a website in 2 languages. I made the whole website one time and I read all the text from an include. In that file I decare my variable each time and then give it its value. Now in all my ASP pages I wanted to use something like this:
<% If language = "Dutch" Then %>
<!-- #INCLUDE FILE="language_dutch.asp" -->
<% Else %>
<!-- #INCLUDE FILE="language_english.asp" -->
<% End If %>
Now when an asp page opens itself, I get an error message, variable already declared, because I declare the same values in both include files. It seems ASP checks the include files and doesn't pay any attention to the if statement. Is there a solution for this ? Or is the only solution to declare the variables only in one or a seperate include file ?
Thanx,
Buzzer
I have a website in 2 languages. I made the whole website one time and I read all the text from an include. In that file I decare my variable each time and then give it its value. Now in all my ASP pages I wanted to use something like this:
<% If language = "Dutch" Then %>
<!-- #INCLUDE FILE="language_dutch.asp" -->
<% Else %>
<!-- #INCLUDE FILE="language_english.asp" -->
<% End If %>
Now when an asp page opens itself, I get an error message, variable already declared, because I declare the same values in both include files. It seems ASP checks the include files and doesn't pay any attention to the if statement. Is there a solution for this ? Or is the only solution to declare the variables only in one or a seperate include file ?
Thanx,
Buzzer