Web/admin/HelpManage.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.admin
{
    public partial class HelpManage : ManageBasePage
    {
        BLL.help bll = new BLL.help();
        BLL.help_class classbll = new BLL.help_class();
        int CurPage = 1;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MODEL.session_manage managemodel = new MODEL.session_manage();
                managemodel = System.Web.HttpContext.Current.Session[ManageBasePage.Session_Manage] as MODEL.session_manage;

                if (managemodel == null)
                {
                    Response.Redirect("~/admin/Login.aspx");
                }
                else
                {
                    if (managemodel.classid == 1 || managemodel.classid == 2)
                    { }
                    else
                    {
                        Response.Redirect("~/admin/main.aspx");
                    }
                }

                BindHelpClass(ddlHelpClass);

                string action = Request["action"];
                if (action == "del")
                {
                    string strID = Request["id"];
                  
                    if (bll.Delete(Convert.ToInt16(strID)))
                    {
                        BLL.goods_shopinfo shopbll = new BLL.goods_shopinfo();
                        if (shopbll.Delete(Convert.ToInt16(strID), "goodsid"))
                        {
                            string script = string.Format("<script language='JavaScript'>alert('删除成功!');</script>");
                            ScriptManager.RegisterStartupScript(this, this.GetType(), System.Guid.NewGuid().ToString(), script, false);
                        }
                       
                    }
                    else
                    {
                        string script = string.Format("<script language='JavaScript'>alert('删除失败!');</script>");
                        ScriptManager.RegisterStartupScript(this, this.GetType(), System.Guid.NewGuid().ToString(), script, false);
                    }
                }

                Bind();
后面还有 68 行代码,购买后查看完整代码

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

AI 解读

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

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