// [rgn] Protected Methods (1) /// <summary> /// Renders the control to the specified HTML writer. /// </summary> /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"></see> object that receives the control content.</param> protected override void Render(HtmlTextWriter writer) { if (!String.IsNullOrEmpty(this.Title)) { writer.WriteLine(@"<div class=""PageSmallCaption"">{0}</div>", this.Title); } if (_stories == null) { return; } bool isOddRow = true; foreach (Story storyRow in this._stories) { StorySummary story = new StorySummary(); this.Controls.Add(story); story.DataBind(storyRow, isOddRow); story.ShowFullSummary = _showFullSummary; story.RenderControl(writer); isOddRow = !isOddRow; } if (this._stories.Count == 0) { writer.WriteLine(@" <div class=""HelpDiv""> <img src=""{0}/information.png"" /> {1} </div> ", this.KickPage.StaticIconRootUrl, _caption); } }
// [rgn] Protected Methods (1) /// <summary> /// Renders the control to the specified HTML writer. /// </summary> /// <param name="writer">The <see cref="T:System.Web.UI.HtmlTextWriter"></see> object that receives the control content.</param> protected override void Render(HtmlTextWriter writer) { if (!String.IsNullOrEmpty(this.Title)) { writer.WriteLine(@"<div class=""PageSmallCaption"">{0}</div>", this.Title); } if (_stories == null) return; bool isOddRow = true; foreach (Story storyRow in this._stories) { StorySummary story = new StorySummary(); this.Controls.Add(story); story.DataBind(storyRow, isOddRow); story.ShowFullSummary = _showFullSummary; story.RenderControl(writer); isOddRow = !isOddRow; } if (this._stories.Count == 0) { writer.WriteLine(@" <div class=""HelpDiv""> <img src=""{0}/information.png"" /> {1} </div> ", this.KickPage.StaticIconRootUrl, _caption); } }