////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////// protected void lbtnFeedDetail_Click(object sender, EventArgs e) { GridViewRow row = ((GridViewRow)((LinkButton)sender).NamingContainer); PopupControlExtender pce = row.FindControl("PopupControlExtenderTicker") as PopupControlExtender; ImageButton imbtnPhoto = (ImageButton)row.FindControl("imbtnPhoto"); ImageButton imbtnVideo = (ImageButton)row.FindControl("imbtnVideo"); HiddenField hfId = (HiddenField)row.FindControl("HiddenFieldId"); HiddenField hfWallId = (HiddenField)row.FindControl("HiddenFieldWallId"); TickerBO objClass = new TickerBO(); objClass = TickerBLL.getTickerByTickerId(hfId.Value); string sValue = hfWallId.Value; GridView gridviewComments = (GridView)row.FindControl("GridViewComments"); //LinkButton btn = (LinkButton)gvr.FindControl("LinkButton2"); WallBO objWall = new WallBO(); objWall = WallBLL.getWallByWallId(sValue); if (objWall.Type == Global.PHOTO || objWall.Type == Global.TAG_PHOTO) { imbtnPhoto.ImageUrl = "../../Resources/ThumbnailPhotos/" + objClass.EmbedPost + ".jpg"; imbtnPhoto.Visible = true; } if (objWall.Type == Global.VIDEO || objWall.Type == Global.TAG_VIDEO || objWall.Type == Global.POST_VIDEOLINK || objWall.Type == Global.TAG_VIDEOLINK) { imbtnVideo.Visible = true; } YouLikes(row); CountShare(row); gridviewComments.DataSource = CommentsDAL.getCommentsTop(Global.WALL, sValue, 2); gridviewComments.DataBind(); Comment_YouLikes(row); pce.DataBind(); }