Ejemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string qq = Request.QueryString["qq"].ToString();
        int    id = Convert.ToInt32(Request.QueryString["id"].ToString());

        FillWriterInfo(qq);
        DealRightContent(id, qq);
        if (!IsPostBack)
        {
            HotArticleList.DataSource = new DAL.DArticle().GetByTotalReadTop8();
            HotArticleList.DataBind();
            GreatArticleList.DataSource = new DAL.DArticle().GetArticleByTitleAndTypeAndIsImportant("", "", 1);
            GreatArticleList.DataBind();
        }
    }
Ejemplo n.º 2
0
    private void GetInfo(string qq)
    {
        Model.Notice notice = new DAL.DNotice().Getnewtime();
        if (notice.Info.Length > 150)
        {
            NoticeHTML.InnerHtml = notice.Info.Substring(0, 149);
        }
        else
        {
            NoticeHTML.InnerHtml = notice.Info;
        }

        DAL.DMember info = new DAL.DMember();
        member    = info.GetMemberByQQ(qq);
        name.Text = member.Name;
        QQ.Text   = qq;
        char[] spit = new char[] { '>' };
        Dept.Text = member.Dept.Split(spit)[1];
        GreatArticleList.DataSource = new DAL.DArticle().GetArticleByTitleAndTypeAndIsImportant("", "", 1);
        GreatArticleList.DataBind();
    }