YKT_EShop/Admin/Picture/Picture_Manage_Dialog_3.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YKT_Common.FileManager;
using YKT_Common;
namespace YKT_EShop.Admin.Picture
{
public partial class Picture_Manage_Dialog_3 : System.Web.UI.Page
{
protected GridView gvFilesList;
protected Label Label1;
string rootPath = "";
protected void Page_Load(object sender, EventArgs e)
{
rootPath = Server.MapPath("~/");
string path = Input.SetString(Request["uploadpath"]);
if (path == "")
{
}
else
{
//if (!this.IsPostBack)
//{
//}
//this.Bind_DirsList();
}
this.Bind_FilesList();
}
private void Bind_DirsList()
{
}
private void Bind_FilesList()
{
string path = Server.MapPath("~/");
FileSystemManager.SetRootPath(path);
List<FileSystemItem> list = FileSystemManager.GetItems();
this.gvFilesList.DataSource = list;
this.gvFilesList.DataBind();
this.Label1.Text += path;
}
public string Bind_Name(object fullname, object name, object isfolder)
{
string s1 = name.ToString();
string s2 = isfolder.ToString().ToLower();
string s3 = fullname.ToString();
string s4 = s3.ToLower().Substring(rootPath.Length);
string tempstr = "";
if (s2 == "true")
{
tempstr = "<img src='/sysImages/FileIcon/folder.gif'/>" + s1;
后面还有 9 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。