admin/admin_DayHot.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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;

public partial class admin_DayHot : System.Web.UI.Page
{
    protected string tdHtml = "";
    protected double pageCount;
    protected string currentIndex = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Cookies["userName"] == null)
        {
            Response.Redirect("login.aspx");
        }


        string type = Request.QueryString["action"];
        string index = Request.QueryString["index"];
        if (string.IsNullOrEmpty(index))
        {
            LoadInfoByIndex(1);
        }
        else
        {
            int intIndex = 0;
            if (int.TryParse(index, out intIndex))
            {
                LoadInfoByIndex(intIndex);
            }
            else
            {
                Response.Write("参数无效");
            }
        }

        //if (type == "del")//判断是否点击删除
        //{
        //    string CaiId = Context.Request.QueryString["CaiId"];
        //    string sql = "update CaiInfo set isDel=1 where CaiInfo.ID=" + CaiId;  
        //    int res = DAL.ExecuteNonQuery(sql);
        //    if (res > 0)
        //    {
        //        Context.Response.Redirect("admin_DayHot.aspx");
        //    }
        //    else
        //    {
        //        Context.Response.Write("删除失败!");
        //    }
        //}


    }

    private void LoadInfoByIndex(int index) 
    {
后面还有 17 行代码,购买后查看完整代码

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

AI 解读

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

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