CommWEB/web/CommInfo.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommLei.BLL;
using CommLei.Lib;
using CommLei.Model;
using CommWeb.UI;

namespace CommWEB.web
{
    public partial class CommInfo : System.Web.UI.Page
    {
        public T_CommInfoList model=null;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            CommInfoList bll=new CommInfoList();
            var id = Request.QueryString["id"];
            var p = Request.QueryString["p"];
            if (TypeParse.IsNumeric(id))
            {
                if (!String.IsNullOrWhiteSpace(p))
                {
                    var lst = bll.GetModelList(1, "GuidID=" + id, "CommID desc"); ;
                    if (lst.Count > 0)
                    {
                        model = lst[0];
                    }
                }else{
                    model = bll.GetModel(int.Parse(id));
                }
                if (model == null)
                {
                    model = new T_CommInfoList();
                }
                else
                {
                    WebCommData web=new WebCommData();
                    web.Update(string.Format("update T_CommInfoList set Click=Click+1 where CommID={0}", model.CommID));
                    GenerateHtml html=new GenerateHtml();
                    positioncon.InnerHtml=html.GetCurrentPosition(model.GuidID.ToString());
                }
            }
            else
            {
                model=new T_CommInfoList();
            }

        }
    }
}

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

AI 解读 AI

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

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