E
Emre Sevinc
I'm using classical ASP on IIS 6.0 (Windows 2003 Server). What I want
to do is to serve the same pages in two different languages without
using two different folders and doubling my same ASP code and changing
the string values.
What I need is DYNAMIC INCLUDE functionality similar to PHP, however I
know that I don't have it in ASP. Moreover Server.Execute is useless
because it doesn't have a functionality like an include file, calling
some file (that includes language string constants) conditionally is
not useful because when the file is executed its scope is over and I
cannot reach the constants or variables defined in that file.
What do you advise in such a situation? I need two groups of
constants, one for English, one for Turkish, like:
english.asp
---------------
lngWeek = "Week"
lngEdit = "Edit"
lngSubmit = "Submit"
..
..
..
turkish.asp
---------------
lngWeek = "Hafta"
lngEdit = "Düzenle"
lngSubmit = "Gönder"
..
..
..
and use the same constant throughout my other ASP pages. Now, you may
advise me to use database, yes I can store the data above in a
database but everytime an ASP page is rendered a connection must be
opened to database and I need loops (imagine I more than a few hundred
string constatns) and control structures. The performance penalty
scares me.
How can such a system be implemented in classical ASP?
Thanks in advance.
to do is to serve the same pages in two different languages without
using two different folders and doubling my same ASP code and changing
the string values.
What I need is DYNAMIC INCLUDE functionality similar to PHP, however I
know that I don't have it in ASP. Moreover Server.Execute is useless
because it doesn't have a functionality like an include file, calling
some file (that includes language string constants) conditionally is
not useful because when the file is executed its scope is over and I
cannot reach the constants or variables defined in that file.
What do you advise in such a situation? I need two groups of
constants, one for English, one for Turkish, like:
english.asp
---------------
lngWeek = "Week"
lngEdit = "Edit"
lngSubmit = "Submit"
..
..
..
turkish.asp
---------------
lngWeek = "Hafta"
lngEdit = "Düzenle"
lngSubmit = "Gönder"
..
..
..
and use the same constant throughout my other ASP pages. Now, you may
advise me to use database, yes I can store the data above in a
database but everytime an ASP page is rendered a connection must be
opened to database and I need loops (imagine I more than a few hundred
string constatns) and control structures. The performance penalty
scares me.
How can such a system be implemented in classical ASP?
Thanks in advance.