LK.Shop.Web/Help/Content.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 LK.Shop.Model;
using LK.Shop.BLL;
using LK.Shop.Common;
using System.Data;

namespace LK.Shop.Web.Help
{
    public partial class Content : LK.Shop.Web.PageBase.ShopPageBase
    {
        LK.Shop.BLL.HelpCategory categoryBll = new BLL.HelpCategory();
        LK.Shop.BLL.HelpInfo articleInfoBll = new BLL.HelpInfo();
        LK.Shop.Model.HelpInfo articleInfoModel = new Model.HelpInfo();
        private int vID;
        public string contents;
        public string categoryName;
        public string categoryID;
        public string pageUrl;
        public string articleTitle;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ID"] != null && Request.QueryString["ID"].Trim() != "")
            {
                if (!int.TryParse(Request.QueryString["ID"], out vID))
                {
                    Response.Redirect("../error.aspx");
                    Response.End();
                }
                else
                {
                    vID = int.Parse(Request.QueryString["ID"].ToString());
                }
            }
            else
            {
                vID = 0;
            }

            if (!IsPostBack)
            {
                LoadArticleInfo();
                LoadCategoryInfo();
            }
        }

        #region 加载列表信息
        /// <summary>
        /// 加载列表信息
        /// </summary>
        private void LoadCategoryInfo()
        {
            string strWhere = " ";
            RepeaterFenLie.DataSource = categoryBll.GetAllList(strWhere);
            RepeaterFenLie.DataBind();
        }
后面还有 51 行代码,购买后查看完整代码

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

AI 解读

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

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