file_text.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.ComponentModel;

public partial class file_text : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string fullPath; 
        string appth= HttpContext.Current.Request.PhysicalApplicationPath;
        string imagepath = appth + "user_folder/new\\";
        string[] fileArray = System.IO.Directory.GetFiles(imagepath, "*");
        string[] filename = new string[fileArray.Length];
        int i = 0;
        foreach (  string  aoo in fileArray )
        {
           filename[i++]= aoo.Substring(aoo.LastIndexOf("\\") + 1);
        }
        foreach (string aoo in filename)
        {
            //Label2.Text += ("#" + aoo + "#");
        }
        for (int j = 0; j < filename.Length;j++ )
        {
            /*Label3.Text += (filename[j]+"**");
            Image shoimg;
            shoimg = new Image();
            shoimg.ID = filename[j];
            shoimg.ImageUrl = "user_folder/new/" + filename[j];
            Holder1.Controls.Add(shoimg);*/
        }
        User_picture user = new User_picture();
        user.user_folder_name = "new";
         string[] file;
         file = user.get_all_file_name();
         //Label3.Text = "";
         //Label3 .Text = user.get_file_total ().ToString ();
         foreach (string aoo in file)
         {
             Image shoimg;
             shoimg = new Image();
             shoimg.ID = aoo ;
             shoimg.Width = Unit .Parse ("400px");
             shoimg.Height = Unit.Parse("400px");
             //Label3.Text += (aoo + "###");
             shoimg.ImageUrl = "user_folder/new/" + aoo;
             Holder1.Controls.Add(shoimg);
         }
         //AdRotator1.DataSource = file;

    }
后面还有 5 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。