FileUpload/Frm_FileContent.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Com_OA.CRM;
using Com_OA.FileUploadinfo;
namespace Com_OA.FileUpload
{
    public partial class Frm_FileContent : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //记录用户根目录
                Txt_RootPath.Text =  Server.MapPath(".") + "/文件系统/" + T_HDUserClass.Func_GetUserName() + "/文件管理";
                //记录从根目录到当前目录的路径
                Lbl_SPath.Text = Request.QueryString["Path"].Trim();
                //将虚拟路径映射为物理路径
                Lbl_Path.Text = Request.QueryString["Path"].Trim();
                //点击文件为保存到本地
                if (Request.QueryString["Id"].Trim() == "0")
                    FileClass.Func_DownloadFile(Page, Lbl_Path.Text.Trim());
                else
                {
                    //获取导航信息
                    //GetNavigation();
                    //将文件绑定为列表
                    BindList(false);
                    //绑定文件夹目录
                    //BindFolder();
                }
            }
        }

        protected void GV_FileList_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {

        }

        protected void GV_FileList_RowDataBound(object sender, GridViewRowEventArgs e)
        {

        }

        #region 绑定文件列表
        private void BindList(bool IsDelete)
        {
            TFileupload File = new TFileupload();
            try
            {
                File.Func_BindGirdList(ref GV_FileList, Lbl_Path.Text.Trim(), ref Lbl_Message, IsDelete, Lbl_SPath.Text.Trim());
后面还有 15 行代码,购买后查看完整代码

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

AI 解读

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

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