show_picture.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;

public partial class show_picture : System.Web.UI.Page
{
    User_picture user = new User_picture();

    private System.Data.DataSet dataSet;

  

    private void MakeParentTable(string folder,string [] array)
    {
        System.Data.DataTable table = new DataTable("ParentTable");
        DataColumn column;
        DataRow row;
        column = new DataColumn();
        column.DataType = System.Type.GetType("System.String");
        column.ColumnName = "img_url";
        column.ReadOnly = true;
        column.Unique = true;
        table.Columns.Add(column);

    
        dataSet = new DataSet();
        dataSet.Tables.Add(table);
        foreach (string aoo in array)
        {
            row = table.NewRow();
            row["img_url"] ="user_folder/"+folder+"/"+aoo;
            table.Rows.Add(row);
        }
    }

    private void BindToDataGrid()
    {
        new_comment.DataSource = dataSet;
        new_comment.DataBind();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        string[] file;
        try
        {
            user.user_folder_name = Page.Request.QueryString.Get(0);
            user_show.Text = user.user_folder_name;
            file = user.get_all_file_name();
            foreach (string aoo in file)
            {
                Image shoimg;
                shoimg = new Image();
                shoimg.ID = aoo;
后面还有 32 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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