icent.Web/Admin/Content/Special/add.aspx.cs

(开头部分) 7KB

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

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text.RegularExpressions;
using icent.BLL;
using icent.Model;
using icent.Common;
using icent.Web.UI;

namespace icent.Web.Admin.Content.Special
{
    public partial class add : AdminPage
    {
        BLL.Catalog catalog = new BLL.Catalog();
        BLL.Content content = new BLL.Content();
        BLL.Sys_Website sys_Website = new BLL.Sys_Website();
        Cont_SpecialInfo specialInfo = new Cont_SpecialInfo();
        Sys_WebsiteInfo sys_WebsiteInfo = new Sys_WebsiteInfo();
        string websiteId;
        string catalogId;

        protected void Page_Load(object sender, EventArgs e)
        {
            websiteId = Request.QueryString["websiteId"];
            catalogId = Request.QueryString["catalogId"];
            sys_WebsiteInfo = sys_Website.GetById(int.Parse(websiteId));

            if (!IsPostBack)
            {

                DataTable dtCatalog = catalog.GetList(int.Parse(websiteId), false);
                Tree.GetTreeDropDownList(dtCatalog, ddlCatalog, catalog.GetById(sys_WebsiteInfo.RootCatalogId).ParentId, true);
                ddlCatalog.SelectedValue = catalogId;

                tbImage.Attributes.Add("onpropertychange", "ShowImg(" + tbImage.ClientID + ",'preview_ImageUrl', '/', '/')");
                SelectImage.Attributes.Add("onclick", "showPopWin('/Admin/Function/Files/selectFile.aspx?websiteId=" + websiteId + "&type=image&rptListType=image&rootPath=" + sys_WebsiteInfo.Path + "&currentRootPath=" + sys_WebsiteInfo.Path + "Images/&textBoxClientID=" + tbImage.ClientID + "',550, 380, _refresh);return false;");
                UploadImage.Attributes.Add("onclick", "showPopWin('/Admin/Function/Files/uploadImage.aspx?websiteId=" + websiteId + "&type=image&rptListType=image&currentRootPath=" + sys_WebsiteInfo.Path + "UpFiles/&textBoxClientID=" + tbImage.ClientID + "',550, 380, _refresh);return false;");
            }
        }

        public string Contents
        {
            set { tbContent.Text = value; }
            get { return tbContent.Text; }
        }

        public string Titles
        {
            get
            {
                string titleStr = tbTitle.Text;

后面还有 123 行代码,解锁后查看完整代码

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

AI 解读

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

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