最新下载
热门教程
- 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
相关文章
- 2025年8月XRP将迎来什么? 08-02
- 《阴阳师》“超鬼王”阿修罗阵容推荐分享 08-02
- 《奇迹暖暖》饴蜜迎春套装怎么获得方法有哪些 08-02
- 怎么驱动矿机-矿机怎么打驱动 08-02
- 《空之要塞:启航》阵容角色搭配最强推荐 08-02
- 《重返未来1999》洞悉机制有什么 08-02