weikeweixin/web/admin/website/slideadd.aspx.cs

(开头部分) 4KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using weikebuluo.DAL;
using weikebuluo.Model;
using weikebuluo.Common;

namespace weikeweixin.web.admin.website
{
    public partial class slideadd : weikeweixin.web.admin.cs.adminbase
    {
        t_home_dal homedal = new t_home_dal();
        t_home_model homemodel = new t_home_model();

        public string Name;
        public string Sort;
        public string Description;
        public string Status;
        public string Type;
        public string PicUrl;
        public string Href;
        public string Id;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(user_id))
            {
                Response.Write("<script Language=\"Javascript\">alert(\"请先配置微官网\")");
                Response.Write("</script>");
                Response.End();
            }

            //根据Id判断是新增还是修改
            if (!IsPostBack && Request.QueryString["Id"] != null)
            {
                Id = Request.QueryString["Id"];
                DataTable dtHomeAd = homedal.GetList("Id='" + Id + "'").Tables[0];
                Name = dtHomeAd.Rows[0]["Name"].ToString();
                Sort = dtHomeAd.Rows[0]["Sort"].ToString();
                Description = dtHomeAd.Rows[0]["Description"].ToString();
                Status = dtHomeAd.Rows[0]["Status"].ToString();
                Type = dtHomeAd.Rows[0]["Type"].ToString();
                PicUrl = dtHomeAd.Rows[0]["PicUrl"].ToString();
                Href = dtHomeAd.Rows[0]["Href"].ToString();
            }
            else {
                Name = "";
                Sort = "0";
                Description = "";
                Status = "1";
                Type = "";
                PicUrl = "styles/images/home-default21.jpg";
                Href = "";
            }

            switch (Request.Form["action"])
            {
后面还有 57 行代码,购买后查看完整代码

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

AI 解读

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

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