diff --git "a/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm1.aspx" "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..bb5cc8b40816738e7b53ae5b99398df2412e0961 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm1.aspx" @@ -0,0 +1,42 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WEB_006.WebForm1" %> + + + + + + + + + +
+
+ + + + + + + + + + + + + +
+ 用户名: + + +
+ 密码: + + +
+ + + +
+
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm1.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm1.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..b23c4d13903289831f666f710ddaf5731fbe7d2f --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm1.aspx.cs" @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WEB_006 +{ + 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 = text_name.Text; + string pwd = text_pwd.Text; + Response.Redirect($"~/WebForm2.aspx?name={text_name.Text}&pwd={text_pwd.Text}"); + } + + + } +} \ No newline at end of file diff --git "a/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm2.aspx" "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm2.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..f6c87a5d3d9f2e49aa0eb07b4d7f518c12e46b61 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm2.aspx" @@ -0,0 +1,17 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WEB_006.WebForm2" %> + + + + + + + + + +
+
+ +
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm2.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm2.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..2a6e684e3fe866e2c941bc669bc2b1c1ab3674ed --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/GET\345\222\214POST\350\257\267\346\261\202\346\226\271\345\274\217\346\263\250\345\206\214/WebForm2.aspx.cs" @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WEB_006 +{ + public partial class WebForm2 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + Response.Write("请求方式:"+Request.RequestType); + + if (Request.RequestType=="POST") + { + string name = Request.Form["text_name"]; + string pwd = Request.Form["text_pwd"]; + + Response.Write($"

欢迎你,{name},你的密码是:{pwd}

"); + } + else + { + string name = Request.QueryString["name"]; + string pwd= Request.QueryString["pwd"]; + + Response.Write($"

欢迎你,{name},你的密码是:{pwd}

"); + } + + + } + } +} \ No newline at end of file diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm1.aspx" "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..a02fafc08c85e9ed7308b08b185331872c3786d8 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm1.aspx" @@ -0,0 +1,23 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WEB_001.WebForm1" %> + + + + + + + + + +
+
+ +
+ 输入文字: + + +
+ +
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm1.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm1.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..97cb3fa16f1169e4f02b447e42820e23d34cfd46 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm1.aspx.cs" @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WEB_001 +{ + 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 str = "您输入的是:" + this.TextBox1.Text; + this.Label2.Text = str; + } + } +} \ No newline at end of file diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm2.aspx" "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm2.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..aa64b0fbafcdd019f6c298c5656a99569c91cf5c --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm2.aspx" @@ -0,0 +1,40 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WEB_001.WebForm2" %> + + + + + + + + + +
+
+

计算器

+ +
+
+ 请输入A值: + +
+
+ 请输入B值: + +
+
+   + +    + +    + +    + +    +
+
+ +
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm2.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm2.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..5d485b4d5e34ef2833eee5f56a20870308777a6e --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\256\241\347\256\227\345\231\250\344\270\216\350\256\241\346\227\266\345\231\250/WebForm2.aspx.cs" @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WEB_001 +{ + public partial class WebForm2 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void Button1_Click(object sender, EventArgs e) + { + double a = double.Parse(this.TextBox1.Text); + double b = double.Parse(this.TextBox2.Text); + double msg = a + b; + this.Label2.Text = "结果:"+msg.ToString(); + } + + protected void Button2_Click(object sender, EventArgs e) + { + double a = double.Parse(this.TextBox1.Text); + double b = double.Parse(this.TextBox2.Text); + double msg = a - b; + this.Label2.Text = "结果:" + msg.ToString(); + } + + protected void Button3_Click(object sender, EventArgs e) + { + double a = double.Parse(this.TextBox1.Text); + double b = double.Parse(this.TextBox2.Text); + double msg = a * b; + this.Label2.Text = "结果:" + msg.ToString(); + } + + protected void Button4_Click(object sender, EventArgs e) + { + double a = double.Parse(this.TextBox1.Text); + double b = double.Parse(this.TextBox2.Text); + double msg = a / b; + double msg1=Math.Round(a / b, 2); + this.Label2.Text = "结果:" + msg1.ToString(); + + + } + } +} \ No newline at end of file diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm1.aspx" "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm1.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..6c578ad3d49f61ac36bd7b375dc7c009b6e3dcd8 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm1.aspx" @@ -0,0 +1,116 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="WEB001.WebForm1" %> + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 用户名: + + +
+ 密码: + + +
+ 确认密码: + + +
+ 性别: + + + + + +
+ 兴趣爱好: + + + + + + +
+ 出生日期: + + +
+ 邮箱: + + +
+ 详细地址: + + +
+ 照片: + + + + +
+ + + +
+ + + + +
+
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm1.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm1.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..a7aaae84dcf5dd7e05b62bb8fa1555c1b8fdfe70 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm1.aspx.cs" @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WEB001 +{ + public partial class WebForm1 : System.Web.UI.Page + { + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected void Button1_Click(object sender, EventArgs e) + { + if (this.fu1.HasFile) + { + string fileName = this.fu1.FileName; + + if (fileName.EndsWith(".jpg") ||fileName.EndsWith(".png")) + { + string path = Server.MapPath(@"~/upload/" + fileName); + this.fu1.SaveAs(path); + + this.Image1.ImageUrl = @"~/upload/" + fileName; + } + else + { + this.ClientScript.RegisterStartupScript(this.GetType(), "uploaderr", "alert('文件类型错误!')", true); + } + } + } + } +} \ No newline at end of file diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm2.aspx" "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm2.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..717c5785cc6dc445a66d3850fc5d594497d8a5ea --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm2.aspx" @@ -0,0 +1,66 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="WEB001.WebForm2" %> + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ 用户名: + + +
+ 性别: + + +
+ 兴趣爱好: + + +
+ 出生日期: + + +
+ 邮箱: + + +
+ 地址: + + +
+
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm2.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm2.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..def599007fccc1c3a665bcc7d49cadcc318f65ba --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\350\267\250\351\241\265\346\225\260\346\215\256\344\274\240\345\200\274\347\224\250\346\210\267\347\225\214\351\235\242/WebForm2.aspx.cs" @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace WEB001 +{ + public partial class WebForm2 : System.Web.UI.Page + { + public string c2; + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + TextBox t1 = (TextBox)PreviousPage.FindControl("text_name"); + this.Label1.Text = t1.Text; + + RadioButtonList r1 = (RadioButtonList)PreviousPage.FindControl("rbl_1"); + this.Label2.Text = r1.Text; + + + CheckBoxList c1 = (CheckBoxList)PreviousPage.FindControl("cbl_1"); + for (int i = 0; i < c1.Items.Count; i++) + { + if (c1.Items[i].Selected) + { + c2 += c1.Items[i].Text + " "; + } + } + this.Label3.Text = c2; + + TextBox t2 = (TextBox)PreviousPage.FindControl("text_bron"); + this.Label4.Text = t2.Text; + + TextBox t3= (TextBox)PreviousPage.FindControl("text_email"); + this.Label5.Text = t3.Text; + + TextBox t4 = (TextBox)PreviousPage.FindControl("text_plz"); + this.Label6.Text = t4.Text; + } + } + } +} \ No newline at end of file