<%
' How to setup multilanguage applications
' by Rodrigo S. Alhadeff, 12/2000
' The script uses session variable considering that you will use multilanguage in your whole site, not just in one page
' About the Author: Rodrigo S. Alhadeff is the Founder & Senior Programmer of Comersus Shopping Cart, www.comersus.com
dim dictLanguage
' try to obtain the language from querystring and set in session
session("language") = request.querystring("language")
' create dictionary to store all page messages
set dictLanguage = CreateObject("Scripting.Dictionary")
' english messages
dictLanguage.Add "english_1", "Multilanguage Application"
dictLanguage.Add "english_2", "Enter your name"
dictLanguage.Add "english_3", "Enter your address"
dictLanguage.Add "english_4", "Submit"
' spanish messages
dictLanguage.Add "spanish_1", "Aplicacion multilenguaje"
dictLanguage.Add "spanish_2", "Ingrese su nombre"
dictLanguage.Add "spanish_3", "Ingrese su direcciÛn"
dictLanguage.Add "spanish_4", "Enviar"
' if the user load the page for the first time, set default language to english
if session("language") = "" then
session("language") = "english"
end if
' example of use: response.write
dictLanguage.Item(Session("language")&"_2") will print "Enter your
name" or "Ingrese su nombre"
%>
<html>
<title><%response.write
dictLanguage.Item(Session("language")&"_1")%></title>
<br><b><%response.write
dictLanguage.Item(Session("language")&"_1")%></b><br><br>
<p>[<a
href="multilanguage.asp?language=english">English</a>
| <a
href="multilanguage.asp?language=spanish">Spanish</a>]</p>
<form method="post" action="somescript.asp" name="somescript">
<table width="300" border="0">
<tr>
<td width="387"><%response.write
dictLanguage.Item(Session("language")&"_2")%></td>
<td width="166">
<input type="text" name="name">
</td>
</tr>
<tr>
<td width="387"><%response.write
dictLanguage.Item(Session("language")&"_3")%></td>
<td width="166">
<input type="text" name="address">
</td>
</tr>
<tr>
<td width="387">
<input type="submit" name="Submit"
value="<%response.write
dictLanguage.Item(Session("language")&"_4")%>">
</td>
<td width="166"> </td>
</tr>
</table>
</form>
</html>
Collaboration Data Object (CDO) is a COM library designed to send mail through SMTP or Microsoft Exchange. If you install the SMTP server that comes with Microsoft Option Pack 4, you can send mail from an Active Server page using CDO. Because CDO is comes with Microsoft Option Pack 4, CDO is free. [Read This Article][Top]
In this article by Joung-ho Jay Jung, he will show how to connect an Access database to your Active Server Pages using Microsoft FrontPage. This is a beginning-level article with plenty of screen shots to show how to connect via ODBC, generate a SQL query in Access and construct the Active Server Page. [Read This Article][Top]
Drill Sargent Tanner describes the war that is involved with being a Web-Based Systems Integrator. He shares his unique perspective on being an Internet consultant including handling technologies, working as a team and dealing with clients. [Read This Article][Top]