diff --git "a/\347\216\213\345\270\205/\347\273\203\344\271\2401.md" "b/\347\216\213\345\270\205/\347\273\203\344\271\2401.md" new file mode 100644 index 0000000000000000000000000000000000000000..47372adfadcd9bbdfce3a1a4e7395adc71779295 --- /dev/null +++ "b/\347\216\213\345\270\205/\347\273\203\344\271\2401.md" @@ -0,0 +1,115 @@ +<%@ 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 Button1_Click(object sender, EventArgs e) + { + string name = FileUpload1.FileName; + string path = Server.MapPath(@"~/img/"+name ); + FileUpload1.SaveAs(path); + Image1.ImageUrl = @"~/img/" + name; + } + + protected void Button2_Click(object sender, EventArgs e) + { + + } + } +} + +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Person.aspx.cs" Inherits="WebApplication1.Person" %> + + + + + + + + + +
+
+ +
+
+ + + +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 Person : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + TextBox t1 = (TextBox)PreviousPage.FindControl("TextBox1"); + RadioButtonList t2 = (RadioButtonList)PreviousPage.FindControl("RadioButtonList"); + + TextBox t4 = (TextBox)PreviousPage.FindControl("TextBox4"); + TextBox t5 = (TextBox)PreviousPage.FindControl("TextBox5"); + TextBox t6 = (TextBox)PreviousPage.FindControl("TextBox6"); + + Label1.Text = "用户名:"+t1 .Text+"
" +t2 + "
"+ + "出生日期:" + t4.Text + "
"+ "邮箱:" + t5.Text + "
"+ "地址:" + t6.Text + "
"; + } + } +} \ No newline at end of file