Exemple #1
0
    protected void Bind()
    {
        FriendLinkInfo info = fBLL.GetDataById(id);

        litName.Text      = info.f_title;
        litTitle.Text     = info.f_name;
        litDegree.Text    = info.f_degree;
        litHistory.Text   = info.f_history;
        litBooks.Text     = info.f_books;
        litSpecialty.Text = info.f_specialty;
        //litEmail.Text = info.f_license;
        //litPhone.Text = info.f_field;
        if (info.f_img != "")
        {
            Image1.ImageUrl = string.Format(Tools.GetAppSettings("FriendLinkTruePath") + info.f_img);
        }
        else
        {
            Image1.ImageUrl = "img/team/person.jpg";
        }
        Rpnews.DataSource = nBLL.GetDataByFIdOrderDesc(id, 3);
        Rpnews.DataBind();
    }
Exemple #2
0
 protected void Bind()
 {
     Rpnews.DataSource = nBLL.GetDataByIdAndLid(id, 3);
     Rpnews.DataBind();
 }