diff --git "a/15\347\216\213\351\233\252\347\202\234/\345\233\276\347\211\207\346\237\245\347\234\213\345\231\250/WebForm4.aspx" "b/15\347\216\213\351\233\252\347\202\234/\345\233\276\347\211\207\346\237\245\347\234\213\345\231\250/WebForm4.aspx" new file mode 100644 index 0000000000000000000000000000000000000000..d27ea4986e21e8c90d18f5965134a0ca50575217 --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\345\233\276\347\211\207\346\237\245\347\234\213\345\231\250/WebForm4.aspx" @@ -0,0 +1,24 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="WebApplication2.WebForm4" %> + + + + + + + + + +
+
+ + +
+
+ + + + +
+
+ + diff --git "a/15\347\216\213\351\233\252\347\202\234/\345\233\276\347\211\207\346\237\245\347\234\213\345\231\250/WebForm4.aspx.cs" "b/15\347\216\213\351\233\252\347\202\234/\345\233\276\347\211\207\346\237\245\347\234\213\345\231\250/WebForm4.aspx.cs" new file mode 100644 index 0000000000000000000000000000000000000000..620b55a7b7cfbcbb759900423b601456f935849b --- /dev/null +++ "b/15\347\216\213\351\233\252\347\202\234/\345\233\276\347\211\207\346\237\245\347\234\213\345\231\250/WebForm4.aspx.cs" @@ -0,0 +1,61 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.IO; + +namespace WebApplication2 +{ + public partial class WebForm4 : System.Web.UI.Page + { + static string[] tp; + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + string path = @"~/img"; + path=Server.MapPath(path); + + tp=Directory.GetFiles(path); + if (tp.Length!=0) + { + SetTp(0); + } + } + } + + private void SetTp(int x) { + img1.ImageUrl =@"~/img/"+Path.GetFileName(tp[x]); + hf.Value = x.ToString(); + } + + protected void Button1_Click(object sender, EventArgs e) + { + SetTp(0); + } + + protected void Button2_Click(object sender, EventArgs e) + { + int y=int.Parse(hf.Value); + if (y > 0) { + SetTp(--y); + } + } + + protected void Button3_Click(object sender, EventArgs e) + { + int y = int.Parse(hf.Value); + if (y