rizhi.aspx.cs

(开头部分) 12KB

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

using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.OleDb;
using System.IO;
namespace khglcrm
{
    public partial class rizhi : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["admin"] == null)
            {
                Response.Write("<script language='javascript'>alert('登录超时');top.location.href='login.aspx';<" + "/script>");
            }
            else
            {
                if (!Page.IsPostBack)
                {
                    this.Label2.Text = "1";
                    this.show();
                    if (this.Label2.Text == "0")
                    {
                        this.Button5.Enabled = false;
                        this.RangeValidator1.MaximumValue = "1";
                    }
                    else
                    {
                        this.RangeValidator1.MaximumValue = Label3.Text;
                    }
                }
            }
        }
        private bool quan()
        {
            bool chknew = false;
         DB mydb = new DB();
         OleDbDataReader dr = mydb.GetdataReader("select * from quan where biao='" + Session["id"].ToString() + "'");
         if (dr.Read())
         {
             string[] qita = dr["system"].ToString().Trim().Split(new char[] { '|' });
             if (qita[12] == "1")
             {
                 chknew = true;
             }
         }
         dr.Close();
         mydb.close();
         return chknew;
        }
        public string uptu(FileUpload f1, string tpath)
        {
            string fileExtension = System.IO.Path.GetExtension(f1.FileName).ToLower(); ;
            fileExtension = System.DateTime.Now.ToString("yyyyMMddhhmmss") + fileExtension;
            f1.SaveAs(Server.MapPath(tpath) + fileExtension);
            return fileExtension;
        }
后面还有 275 行代码,购买后查看完整代码

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

AI 解读

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

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