diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm1.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm1.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..d47ef1e64fbd808cd64c1aa3cb9254a084ddb837
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm1.aspx"
@@ -0,0 +1,20 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Demo0621.WebForm1" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm1.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm1.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..6bcf4198dd617edb0880ee9759c41e8926187389
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm1.aspx.cs"
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace Demo0621
+{
+ public partial class WebForm1 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+
+ protected void Button1_Click(object sender, EventArgs e)
+ {
+ Session["UserName"]=TextBox1.Text;
+ Response.Cookies["Pwd"].Value = TextBox2.Text;
+ Response.Redirect("WebForm2.aspx");//跳转到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\216\346\231\250\351\234\236/WebForm2.aspx" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm2.aspx"
new file mode 100644
index 0000000000000000000000000000000000000000..06e105b190a6762a8fb9c09e858037343d37aa0a
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm2.aspx"
@@ -0,0 +1,23 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="Demo0621.WebForm2" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git "a/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm2.aspx.cs" "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm2.aspx.cs"
new file mode 100644
index 0000000000000000000000000000000000000000..fa643ea730c90a3d901ca7cc22e5b8ede4881cf6
--- /dev/null
+++ "b/\347\254\2545\346\254\241\344\275\234\344\270\232/\351\273\216\346\231\250\351\234\236/WebForm2.aspx.cs"
@@ -0,0 +1,42 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+
+namespace Demo0621
+{
+ public partial class WebForm2 : System.Web.UI.Page
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (Session["UserName"]==null||Request.Cookies["Pwd"]==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 name = Session["UserName"].ToString();
+ string time = DateTime.Now.ToString();
+ string text = TextBox1.Text;
+
+ Literal literal = new Literal();
+ literal.Text = name + "" + time + ":" + text + "
";
+ ((Panel)Application["ChatRoom"]).Controls.Add(literal);
+ }
+
+ protected void Button3_Click(object sender, EventArgs e)
+ {
+ Session.Abandon();
+ Response.Redirect("WebForm1.aspx");
+ }
+ }
+}
\ No newline at end of file