/* * This work is licensed under the Creative Commons Attribution 2.5 License. * To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ * or send a letter to Creative Commons, 543 Howard Street, 5th Floor, * San Francisco, California, 94105, USA. * * Original developer: David Betz * */ using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using Squid; using Squid.Data.Entity; public partial class ShowFeedInformation : System.Web.UI.Page { public Int32 Id { get { Int32 id = 0; if (Request.QueryString["id"] != null) { if (Int32.TryParse(Request.QueryString["id"], out id)) { return id; } } throw new ArgumentException("id is a required parameter"); } } protected override void OnLoad(EventArgs e) { Snippet snippet = SnippetFacade.GetSnippetData(this.Id); this.Title = snippet.SnippetTitle; litTitleSrc.Text = snippet.SnippetTitle; if (String.IsNullOrEmpty(snippet.SnippetDescription)) { litDescription.Text = "There is no more information available for this topic."; } else { litDescription.Text = snippet.SnippetDescription; } base.OnLoad(e); } }