Web/shownews.aspx.cs

(完整代码) 1KB

/*********************************************************************
 * CopyRight (c) 2009-2010 HangJing Teconology. All Rights Reserved.
 ShowNews.aspx.cs
 * Function : 公告详细信息
 *  at 2010-8-21 1:10:04.
 
*********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;

public partial class ShowNews : System.Web.UI.Page
{
    News dal = new News();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            GetNewsInfo();
            GetList();
        }
    }

    protected void GetNewsInfo()
    {
        int id = HjNetHelper.GetQueryInt("id" ,0);
        NewsInfo modle = dal.GetModel(id);
        if (modle != null)
        {
            this.newstitle.InnerHtml = modle.Title;
            this.newsContent.InnerHtml = modle.EContent;
            Page.Title = modle.Title + " - "+ SectionProxyData.GetSetValue(3);
            divtime.InnerHtml = modle.Posttime.ToLongDateString();
        }
    }

    protected void GetList()
    {
        rptNewsList.DataSource = dal.GetList(12, 1, "", "dataid", 1);
        rptNewsList.DataBind();
    }
}

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

AI 解读 AI

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

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