现在要弄个双语版的网站
a.asp -> 中有个 中文/English
当单击中文的时候,切到中文版本 a.asp显示的内容显示是中文的
当单击English的时候,切到英文版本 a.asp显示的内容是英文的
在"中文/English",是通过链接 Ser.asp?l=cn 或 Ser.asp?l=en来转化的,
请问,ser.asp?l=cn这个页面里头的逻辑是怎么样写的? 能使双语版本,是同一个页面的。。谢谢。
------解决方案--------------------
可以使用cookie保存语言如果后续的连接不想传递参数
i=trim(request.querystring("i")&")
if i<>"" then '传递了语言则用cookie保存起来
response.Cookies("lan").expires=date+365
response.Cookies("lan").path="/"
response.Cookies("lan")=i
else'未传递语言参数从cookie中获取
i=request.cookies("lan")
end if
if i<>"cn" and i<>"en" then i="cn"'语言不是cn和en默认为cn
if i="cn" then
'==读取中文内容输出
else
'==读取英文内容输出
end if