protected void BlogPostRepeater_OnItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            var          post    = (BlogPost)e.Item.DataItem;
            FollowButton follBtn = (FollowButton)e.Item.FindControl("follBtn");

            follBtn.LoadState(post.ContentId, UnderstoodDotOrg.Common.Constants.TelligentContentType.BlogPost, post.ContentTypeId);
        }
        private void Page_Load(object sender, EventArgs e)
        {
            wikiId     = Request.QueryString["wikiId"];
            wikiPageId = Request.QueryString["wikiPageId"];
            contentId  = Request.QueryString["contentId"];
            Item currItem = Sitecore.Context.Item;

            // UnderstoodDotOrg.Services.Models.Telligent.Question question = TelligentService.GetQuestion(wikiId, wikiPageId, contentId);
            UnderstoodDotOrg.Services.Models.Telligent.Question question = Questions.GetQuestion(wikiId, wikiPageId, contentId);

            QuestionTitleLabel.Text   = question.Title;
            QuestionBodyLabel.Text    = question.Body;
            GroupLabel.Text           = question.Group;
            AuthorLabel.Text          = question.Author;
            hypAuthorLink.NavigateUrl = MembershipHelper.GetPublicProfileUrl(question.Author);
            DateLabel.Text            = question.PublishedDate;
            //HtmlAnchor hrefTopicUrl = e.FindControlAs<HtmlAnchor>("hrefTopicUrl");
            if (hrefTopicUrl != null)
            {
                Item parentItem = Sitecore.Context.Item.Parent;
                hrefTopicUrl.HRef = parentItem.GetUrl() + "?topic=" + HttpUtility.UrlEncode(question.Group);
            }
            SubmitButton.Text = UnderstoodDotOrg.Common.DictionaryConstants.SubmitAnswerLabel;
            FollowButton.LoadState(question.ContentId, Constants.TelligentContentType.Weblog, question.ContentTypeId);
        }
        protected void questionsRepeater_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
        {
            var       item = (Question)e.Item.DataItem;
            HyperLink hypUserProfileLink = (HyperLink)e.Item.FindControl("hypUserProfileLink");

            if (hypUserProfileLink != null)
            {
                hypUserProfileLink.NavigateUrl = MembershipHelper.GetPublicProfileUrl(item.Author);
            }

            HtmlAnchor hrefTopicUrl = e.FindControlAs <HtmlAnchor>("hrefTopicUrl");

            if (hrefTopicUrl != null)
            {
                Item currItem = Sitecore.Context.Item;
                hrefTopicUrl.HRef = currItem.GetUrl() + "?topic=" + HttpUtility.UrlEncode(item.Group);
            }
            FollowButton btnFoll = e.FindControlAs <FollowButton>("FollowButton");

            if (btnFoll != null)
            {
                btnFoll.LoadState(item.ContentId, Constants.TelligentContentType.Weblog, item.ContentTypeId);
            }
        }