예제 #1
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();
    }