WorkManage/Docu/AdminDoc_OfficeEdit.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using haoke365;

namespace hkoa.WorkManage.Docu
{
    public partial class AdminDoc_OfficeEdit : System.Web.UI.Page
    {
        public static string extfilename, usname;
        public static string adname, adfile, number;
        protected void Page_Load(object sender, EventArgs e)
        {
            mydb hkdb = new mydb();
            hkdb.VeriSess("4");

            usname = this.Session["username"].ToString();
            this.SaveBtn.Attributes.Add("onclick", "javascript: SaveFile();");

            if (!IsPostBack)
            {
                adfile = Request.QueryString["file"].ToString();
                number = Request.QueryString["number"].ToString();

                SqlDataReader dr = SqlHelper.ExecuteReader("SELECT adName FROM hk_AdminDoc WHERE adNewName='" + Request.QueryString["file"] + "'");
                if (dr.Read())
                {
                    adname = dr["adName"].ToString();
                }
                dr.Close();

                if (Request.QueryString["filetype"].ToString() == ".doc" || Request.QueryString["filetype"].ToString() == ".DOC")
                {
                    prnBtn.Visible = true;
                    clrTrkBtn.Visible = true;
                    TrkBtn.Visible = true;
                    unTrkBtn.Visible = true;
                }

                if (Request.QueryString["filetype"].ToString() == ".xls" || Request.QueryString["filetype"].ToString() == ".XLS")
                {
                    prnBtn.Visible = false;
                    clrTrkBtn.Visible = false;
                    TrkBtn.Visible = false;
                    unTrkBtn.Visible = false;
                }

                if (Request.QueryString["filetype"].ToString() == ".ppt" || Request.QueryString["filetype"].ToString() == ".PPT")
                {
                    prnBtn.Visible = true;
                    clrTrkBtn.Visible = false;
                    TrkBtn.Visible = false;
                    unTrkBtn.Visible = false;
                }
            }
            string fileName = System.IO.Path.GetFileName(Request.QueryString["file"].ToString());
后面还有 9 行代码,购买后查看完整代码

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

AI 解读

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

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