diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/.keep" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/.keep"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..249c47110db514e36189165e44b421a8487b9747
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..8ae4c4fe07bf494165ff1c71e469cfb7e6f2bcb6
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = TextBox1.Text;
+ string pswd = TextBox2.Text;
+ Session["name"] = name;
+ Response.Cookies["pswd"].Value = pswd;
+ Response.Cookies["pswd"].Expires = DateTime.Now.AddHours(2);
+
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.designer.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.designer.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..2eebe3a6c9a48b39664038d657a709df8e489fdc
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.designer.cs"
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm1
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// TextBox2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox2;
+
+ ///
+ /// TextBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+
+ ///
+ /// Literal1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Literal Literal1;
+ }
+}
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..358c8016f095535a0cc2c3f3eb0cd98d451cc5b4
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..f29cd4d552aec8c64cc7b292a1155e17b5278f40
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["name"]==null||Request.Cookies["pswd"]==null)
+ {
+ Response.Redirect("WebForm1.aspx");
+
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = Session["name"].ToString();
+ string Nowtime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + Nowtime + ":" + text + "" + "
";
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.designer.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.designer.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..2bac9156efa3441c0dc5895846c7f0442c337106
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.designer.cs"
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm2
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Panel Panel1;
+
+ ///
+ /// Panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Panel Panel2;
+
+ ///
+ /// TextBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+
+ ///
+ /// Button2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button2;
+
+ ///
+ /// Button3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button3;
+ }
+}
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/.keep" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/.keep"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..249c47110db514e36189165e44b421a8487b9747
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..8ae4c4fe07bf494165ff1c71e469cfb7e6f2bcb6
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = TextBox1.Text;
+ string pswd = TextBox2.Text;
+ Session["name"] = name;
+ Response.Cookies["pswd"].Value = pswd;
+ Response.Cookies["pswd"].Expires = DateTime.Now.AddHours(2);
+
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.designer.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.designer.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..2eebe3a6c9a48b39664038d657a709df8e489fdc
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.designer.cs"
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm1
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// TextBox2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox2;
+
+ ///
+ /// TextBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+
+ ///
+ /// Literal1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Literal Literal1;
+ }
+}
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..358c8016f095535a0cc2c3f3eb0cd98d451cc5b4
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..f29cd4d552aec8c64cc7b292a1155e17b5278f40
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["name"]==null||Request.Cookies["pswd"]==null)
+ {
+ Response.Redirect("WebForm1.aspx");
+
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = Session["name"].ToString();
+ string Nowtime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + Nowtime + ":" + text + "" + "
";
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.designer.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.designer.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..2bac9156efa3441c0dc5895846c7f0442c337106
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.designer.cs"
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm2
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Panel Panel1;
+
+ ///
+ /// Panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Panel Panel2;
+
+ ///
+ /// TextBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+
+ ///
+ /// Button2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button2;
+
+ ///
+ /// Button3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button3;
+ }
+}
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/.keep" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/.keep"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..249c47110db514e36189165e44b421a8487b9747
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..8ae4c4fe07bf494165ff1c71e469cfb7e6f2bcb6
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = TextBox1.Text;
+ string pswd = TextBox2.Text;
+ Session["name"] = name;
+ Response.Cookies["pswd"].Value = pswd;
+ Response.Cookies["pswd"].Expires = DateTime.Now.AddHours(2);
+
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.designer.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.designer.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..2eebe3a6c9a48b39664038d657a709df8e489fdc
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.designer.cs"
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm1
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// TextBox2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox2;
+
+ ///
+ /// TextBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+
+ ///
+ /// Literal1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Literal Literal1;
+ }
+}
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..358c8016f095535a0cc2c3f3eb0cd98d451cc5b4
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..f29cd4d552aec8c64cc7b292a1155e17b5278f40
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["name"]==null||Request.Cookies["pswd"]==null)
+ {
+ Response.Redirect("WebForm1.aspx");
+
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = Session["name"].ToString();
+ string Nowtime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + Nowtime + ":" + text + "" + "
";
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.designer.cs" "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.designer.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..2bac9156efa3441c0dc5895846c7f0442c337106
--- /dev/null
+++ "b/\347\254\2544\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.designer.cs"
@@ -0,0 +1,80 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace WebApplication1
+{
+
+
+ public partial class WebForm2
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Panel Panel1;
+
+ ///
+ /// Panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Panel Panel2;
+
+ ///
+ /// TextBox1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextBox1;
+
+ ///
+ /// Button1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button1;
+
+ ///
+ /// Button2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button2;
+
+ ///
+ /// Button3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Button Button3;
+ }
+}
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/.keep" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/.keep"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..249c47110db514e36189165e44b421a8487b9747
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..8ae4c4fe07bf494165ff1c71e469cfb7e6f2bcb6
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = TextBox1.Text;
+ string pswd = TextBox2.Text;
+ Session["name"] = name;
+ Response.Cookies["pswd"].Value = pswd;
+ Response.Cookies["pswd"].Expires = DateTime.Now.AddHours(2);
+
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..358c8016f095535a0cc2c3f3eb0cd98d451cc5b4
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..f29cd4d552aec8c64cc7b292a1155e17b5278f40
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\347\273\203\346\226\207\346\265\251/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["name"]==null||Request.Cookies["pswd"]==null)
+ {
+ Response.Redirect("WebForm1.aspx");
+
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = Session["name"].ToString();
+ string Nowtime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + Nowtime + ":" + text + "" + "
";
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/.keep" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/.keep"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..249c47110db514e36189165e44b421a8487b9747
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..8ae4c4fe07bf494165ff1c71e469cfb7e6f2bcb6
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = TextBox1.Text;
+ string pswd = TextBox2.Text;
+ Session["name"] = name;
+ Response.Cookies["pswd"].Value = pswd;
+ Response.Cookies["pswd"].Expires = DateTime.Now.AddHours(2);
+
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..358c8016f095535a0cc2c3f3eb0cd98d451cc5b4
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..f29cd4d552aec8c64cc7b292a1155e17b5278f40
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\350\203\241\346\264\245\345\215\216/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["name"]==null||Request.Cookies["pswd"]==null)
+ {
+ Response.Redirect("WebForm1.aspx");
+
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = Session["name"].ToString();
+ string Nowtime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + Nowtime + ":" + text + "" + "
";
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/.keep" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/.keep"
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..249c47110db514e36189165e44b421a8487b9747
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..8ae4c4fe07bf494165ff1c71e469cfb7e6f2bcb6
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm1.aspx.cs"
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string name = TextBox1.Text;
+ string pswd = TextBox2.Text;
+ Session["name"] = name;
+ Response.Cookies["pswd"].Value = pswd;
+ Response.Cookies["pswd"].Expires = DateTime.Now.AddHours(2);
+
+ Response.Redirect("WebForm2.aspx");
+ }
+ }
+}
\ No newline at end of file
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..358c8016f095535a0cc2c3f3eb0cd98d451cc5b4
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx"
@@ -0,0 +1,26 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WebApplication1.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..f29cd4d552aec8c64cc7b292a1155e17b5278f40
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\204\345\274\272/WebForm2.aspx.cs"
@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace WebApplication1
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["name"]==null||Request.Cookies["pswd"]==null)
+ {
+ Response.Redirect("WebForm1.aspx");
+
+ }
+ if (Application["chatRoom"]==null)
+ {
+ Application["chatRoom"] = new Panel();
+ }
+ Panel1.Controls.Add((Panel)Application["chatRoom"]);
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ string text = TextBox1.Text;
+ string name = Session["name"].ToString();
+ string Nowtime = DateTime.Now.ToString();
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + Nowtime + ":" + text + "" + "
";
+ Panel panel = (Panel)Application["chatRoom"];
+ panel.Controls.Add(literal);
+ }
+
+ protected void Button2_Click(object sender, EventArgs e)
+ {
+ Page_Load(sender, e);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file