diff --git "a/007\351\231\210\344\277\212\345\205\264/.vs/WebApplication2/config/applicationhost.config" "b/07\351\231\210\344\277\212\345\205\264/.vs/WebApplication2/config/applicationhost.config" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/.vs/WebApplication2/config/applicationhost.config" rename to "07\351\231\210\344\277\212\345\205\264/.vs/WebApplication2/config/applicationhost.config" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2.sln" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2.sln" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2.sln" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2.sln" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/Properties/AssemblyInfo.cs" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/Properties/AssemblyInfo.cs" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/Properties/AssemblyInfo.cs" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/Properties/AssemblyInfo.cs" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Debug.config" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Debug.config" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Debug.config" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Debug.config" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Release.config" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Release.config" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Release.config" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/Web.Release.config" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/Web.config" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/Web.config" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/Web.config" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/Web.config" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj.user" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj.user" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj.user" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/WebApplication2.csproj.user" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.cs" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.cs" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.cs" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.cs" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.designer.cs" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.designer.cs" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.designer.cs" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/WebForm1.aspx.designer.cs" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.xml" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll.config" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll.config" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll.config" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.dll.config" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.pdb" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.pdb" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.pdb" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/bin/WebApplication2.pdb" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/packages.config" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/packages.config" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/packages.config" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/packages.config" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.cs" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.cs" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.cs" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.cs" diff --git "a/007\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.designer.cs" "b/07\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.designer.cs" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.designer.cs" rename to "07\351\231\210\344\277\212\345\205\264/WebApplication2/register.aspx.designer.cs" diff --git "a/007\351\231\210\344\277\212\345\205\264/\347\254\224\350\256\260/.keep" "b/07\351\231\210\344\277\212\345\205\264/\347\254\224\350\256\260/.keep" similarity index 100% rename from "007\351\231\210\344\277\212\345\205\264/\347\254\224\350\256\260/.keep" rename to "07\351\231\210\344\277\212\345\205\264/\347\254\224\350\256\260/.keep" diff --git "a/07\351\231\210\344\277\212\345\205\264/\347\254\2545\344\275\234\344\270\232.md" "b/07\351\231\210\344\277\212\345\205\264/\347\254\2545\344\275\234\344\270\232.md" new file mode 100644 index 0000000000000000000000000000000000000000..530f01ff13efca96331dfc960d6d0d0999862553 --- /dev/null +++ "b/07\351\231\210\344\277\212\345\205\264/\347\254\2545\344\275\234\344\270\232.md" @@ -0,0 +1,104 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="_1.login" %> + + + +| | | | +| -------- | ---- | ---- | +| 用户名: | | | +| 密码: | | | + + + +=========================================================================================== + +using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; + +namespace _1 { public partial class login : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write("网站总访问次数:"+Application["a"]+" "); Response.Write("网站在线人数:" + Application["b"]); } + +``` + protected void Button1_Click(object sender, EventArgs e) + { + string name = TextBox1.Text; + string pwd = TextBox2.Text; + string time = DateTime.Now.ToString(); + if (name=="admin") + { + if (pwd=="123456") + { + Session["name"] = name; + Session["time"] = time; + Response.Redirect("index.aspx"); + } + } + } +} +``` + +# } + +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="_1.index" %> + + + +=========================================================================================== using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; + +namespace _1 { public partial class index : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Response.Write("欢迎用户"+Session["name"]+"登录本系统!!! +"); Response.Write("您登录系统的时间为:"+Session["time"]); + +``` + } + + protected void Button1_Click(object sender, EventArgs e) + { + Response.Redirect("login.aspx"); + } +} +``` + +# } + +using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Security; using System.Web.SessionState; + +namespace _1 { public class Global : System.Web.HttpApplication { + +``` + protected void Application_Start(object sender, EventArgs e) + { + Application["a"] = 0; + Application["b"] = 0; + } + + protected void Session_Start(object sender, EventArgs e) + { + Application["a"] = (int)Application["a"] +1; + Application["b"] = (int)Application["b"] + 1; + } + + protected void Application_BeginRequest(object sender, EventArgs e) + { + + } + + protected void Application_AuthenticateRequest(object sender, EventArgs e) + { + + } + + protected void Application_Error(object sender, EventArgs e) + { + + } + + protected void Session_End(object sender, EventArgs e) + { + Application["b"] = (int)Application["b"] -1; + } + + protected void Application_End(object sender, EventArgs e) + { + + } +} +``` + +} \ No newline at end of file