diff --git "a/13\351\231\210\344\275\263\344\274\246/.keep" "b/13\351\231\210\344\275\263\344\274\246/.keep" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/13\351\231\210\344\275\263\344\274\246/\345\256\236\347\216\260\347\224\250\346\210\267\346\263\250\345\206\214\345\212\237\350\203\275.md" "b/13\351\231\210\344\275\263\344\274\246/\345\256\236\347\216\260\347\224\250\346\210\267\346\263\250\345\206\214\345\212\237\350\203\275.md" new file mode 100644 index 0000000000000000000000000000000000000000..b3f23fea51da89df1dba33756beb1871525f9f7d --- /dev/null +++ "b/13\351\231\210\344\275\263\344\274\246/\345\256\236\347\216\260\347\224\250\346\210\267\346\263\250\345\206\214\345\212\237\350\203\275.md" @@ -0,0 +1,187 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WebApplication1.WebForm1" %> + + + + + + + + + + +
+
+ 用户注册
+

+ 用户名:  + +

+

+ 密码:   + +

+

+ 确认密码: +

+

+ 性别 :  + + + +

+

+ 兴趣爱好: + 编程 + 唱歌 + 打球 + +

+

+  出生日期: +  

+

+ 邮箱:   + +

+

+ 详细地址: +

+

+ 照片:   +

+

+ +  + +

+

+ +

+
+ + + + +=========================================================================================== +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 Button2_Click(object sender, EventArgs e) + { + string name = TextBox1.Text; + string sex = RadioButtonList1.SelectedValue; + string have = CheckBoxList1.SelectedValue; + string hab= GetChecked(CheckBoxList1); + string birthday = TextBox4.Text; + string email = TextBox5.Text; + string add = TextBox6.Text; + + Session["a"] = "用户名:" + name; + Session["b"] = "性别:" + sex; + Session["c"] = "兴趣爱好:" + hab; + Session["d"] = "出生日期:" + birthday; + Session["f"] = "邮箱:" + email; + Session["g"] = "地址:" + add; + + Response.Redirect("yanzheng.aspx"); + + + } + + public static string GetChecked(CheckBoxList checklist) + { + string result = ""; + for (int i = 0; i < checklist.Items.Count; i++) + { + if (checklist.Items[i].Selected) + { + result += checklist.Items[i].Value + ""; + } + } + return result; + } + + } +} +=========================================================================================== +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="yanzheng.aspx.cs" Inherits="WebApplication1.yanzheng" %> + + + + + + + + + +
+
+ +
+

+ +

+

+ +

+

+ +

+

+ +

+

+ +

+
+ + +=========================================================================================== +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 yanzheng : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + if (!Page.IsPostBack) + { + Label1.Text = Session["a"].ToString(); + Label2.Text = Session["b"].ToString(); + Label3.Text = Session["c"].ToString(); + Label4.Text = Session["d"].ToString(); + Label5.Text = Session["f"].ToString(); + Label6.Text = Session["g"].ToString(); + } + } + } +} \ No newline at end of file