示例#1
0
 /// <summary>
 /// Gridview row data bound event.
 /// </summary>
 /// <param name="sender">Object sender.</param>
 /// <param name="e">EventArgs e.</param>
 protected void gvBans_RowDataBound(object sender, GridViewRowEventArgs e)
 {
     if (e.Row.RowType == DataControlRowType.DataRow)
     {
         HyperLink hl = e.Row.FindControl("hlUserPage") as HyperLink;
         hl.Text        = PersonalInfoRepository.GetFullName(new Guid(e.Row.Cells[0].Text));
         hl.NavigateUrl = "~/UserProfile.aspx?id=" + e.Row.Cells[0].Text;
     }
 }
示例#2
0
        //public String UserPhoto
        //{
        //    set { lblFio.Text = value; }
        //}

        /// <summary>
        /// Page load event.
        /// </summary>
        /// <param name="sender">Object sender.</param>
        /// <param name="e">Eventargs e.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            UserName   = PersonalInfoRepository.GetFullName(this.FriendID);
            UserStatus = StatusRepository.GetStatusMessage(this.FriendID);
        }