WebUI/Article_Detial.aspx.cs

(开头部分) 3KB

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

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

namespace WebUI
{
    public partial class Article_Detial : System.Web.UI.Page
    {
        protected void Page_PreInit(object sender, EventArgs e)
        {
            Page.Theme = EkKeys.Skin;
        }
        public string subTitle(object str)
        {
            string title = str.ToString();
            return Common.Utils.CutString(title, 20);

        }
        public string link = " > 行业动态> 最新咨询";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                if (Request.QueryString["pid"] != null)
                {
                    string id = Request.QueryString["pid"].ToString();
                    ek_category c = Bll.Bll_ek_category.GetEntityById(id);
                    if (c != null && c.id > 0)
                    {
                        ek_category cp = Bll.Bll_ek_category.GetEntityById(c.parent_id);
                        link = " > " + cp.title + "> " + c.title;
                        ek_article art = Bll.Bll_ek_article.GetEntityByWhere(ek_article._.category_id == id);
                        
                    }
                }

                List<HModel.ek_category> list = null;
                string cid = "0";
                if (Request.QueryString["category_id"] != null)
                {
                     cid = Request.QueryString["category_id"].ToString();

                    list = Bll.Bll_ek_category.GetEntityListByWhere(ek_category._.parent_id == Bll.Bll_ek_category.GetEntityById(cid).parent_id);

                    //gvData.DataSource = list;
                    // gvData.DataBind();


                  //  FeedBack1.category_id = cid;
                }  
               


                if (Request.QueryString["Id"] != null)
后面还有 48 行代码,购买后查看完整代码

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

AI 解读 AI

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

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