📄 applicationcount.aspx
字号:
<% @ Page Language="C#" %>
<Script Language="C#" Runat="Server">
public void Page_Load(Object src,EventArgs e)
{
Application.Lock();
Application["User_Count"]=(Int32)Application["User_Count"]+1;
Application.UnLock();
count.Text = Application["User_Count"].ToString();
}
</script>
<html>
<head>
<title></title>
</head>
<body>
<b>演示Application</b>
<form runat="server">
当前的计数为:<asp:Label id="count" ForeColor="red" runat="server" />
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -