最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp教程:ASP Session 对象简单简介
时间:2022-07-02 22:41:44 编辑:袖梨 来源:一聚教程网
asp教程:ASP Session 对象简单简介
Session对象是用来储存的信息,或更改设置的一个用户会议。变量存储在Session对象举办资讯单一用户,并提供给所有的网页在一个应用程序。
下面来看一个简单的实例吧.
<%
response.write("
")
response.write("The default LCID for this page is: " & Session.LCID & "
")
response.write("The Date format for the above LCID is: " & date() & "
")
response.write("The Currency format for the above LCID is: " & FormatCurrency(350))
response.write("
Session.LCID=1036
response.write("
")
response.write("The LCID is now changed to: " & Session.LCID & "
")
response.write("The Date format for the above LCID is: " & date() & "
")
response.write("The Currency format for the above LCID is: " & FormatCurrency(350))
response.write("
Session.LCID = 3079
response.write("
")
response.write("The LCID is now changed to: " & Session.LCID & "
")
response.write("The Date format for the above LCID is: " & date() & "
")
response.write("The Currency format for the above LCID is: " & FormatCurrency(350))
response.write("
Session.LCID = 2057
response.write("
")
response.write("The LCID is now changed to: " & Session.LCID & "
")
response.write("The Date format for the above LCID is: " & date() & "
")
response.write("The Currency format for the above LCID is: " & FormatCurrency(350))
response.write("
%>
输出的结果为.
The default LCID for this page is: 1033
The Date format for the above LCID is: 10/31/2008
The Currency format for the above LCID is: $350.00
The LCID is now changed to: 1036
The Date format for the above LCID is: 31/10/2008
The Currency format for the above LCID is: 350,00 €
The LCID is now changed to: 3079
The Date format for the above LCID is: 31.10.2008
The Currency format for the above LCID is: € 350,00
The LCID is now changed to: 2057
The Date format for the above LCID is: 31/10/2008
The Currency format for the above LCID is: ?50.00
转载请注明来自http://www.111com.net/asp/asp.html
相关文章
- “十月朝,糍粑碌碌烧”说的是小雪时节的哪一项习俗 蚂蚁庄园11月22日答案早知道 11-25
- 以闪亮之名宠物礼包怎么样 11-25
- 崩坏星穹铁道星期日用什么光锥 11-25
- 崩坏星穹铁道星期日用什么光锥 崩铁星期日光锥推荐搭配介绍 11-25
- 崩坏星穹铁道星期日技能机制怎么样 崩铁星期日技能机制介绍 11-25
- 崩坏星穹铁道星期日遗器怎么选择 崩铁星期日遗器推荐搭配介绍 11-25