using System; using Pinwheel.Extensions; namespace Website { public partial class AwardDetail : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { var typeName = Request["AwardID"]; var awardType = Type.GetType(typeName, false); if (awardType == null) Name = Description = string.Empty; else { Name = awardType.GetNameFromAttribute(); Description = awardType.GetDescriptionFromAttribute(); } } protected string Name { get; set; } protected string Description { get; set; } } }