ch11-04-01.aspx
来自「深入浅出ASP.NET程序设计-源代码 书籍语言: 简体中文 」· ASPX 代码 · 共 24 行
ASPX
24 行
<Html>
<Head>
<Title>Ch11-04-01.aspx Session 对象的使用</Title>
</Head>
<Body>
目前的 SessionID 为:
<% = Session.SessionID %><BR>
<%
If IsNothing(Session("Counters")) Then
Response.Write("尚未建立Session变量")
Else
Response.Write("Session(""Counters"")变量的值为:")
Response.Write(Session("Counters"))
End if
%><BR>
将Session("Counters")变量的值加1<BR>
<%
Session("Counters") = Session("Counters") + 1
%>
目前Session("Counters")变量的值为:
<% = Session("Counters") %><BR>
</Body>
</Html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?