sessioncounterbad.aspx

来自「asp.net技术内幕的书配源码」· ASPX 代码 · 共 34 行

ASPX
34
字号
<Script Runat="Server">
Sub Page_Load
  Dim objSessionService As SessionService
  
  objSessionService = New SessionService
  lblSessionCounter.Text = objSessionService.GetSessionCounter()
  lblSessionID.Text = objSessionService.GetSessionID()
End Sub
</Script>

<html>
<head><title>SessionCounterBad.aspx</title></head>
<body>

<h2>This page does not work!</h2>

Your session ID is

<asp:Label
  ID="lblSessionID"
  Runat="Server" />

<p>

This page has been requested by you

<asp:Label
  ID="lblSessionCounter"
  Runat="Server" />

times!

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?