using framework_business; using framework_library; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class controls_module_mediaFeatured : System.Web.UI.UserControl { #region methods /// /// Bind Featured Media /// private void BindFeatured() { try { ArrayList featured = xData.GetTypedByCriteriaSpecific("recId", typeof(oMedia), "isActive,isFeatured", "1,1", "mediaDate DESC"); rptMediaPreview.DataSource = featured; rptMediaPreview.DataBind(); } catch (Exception ex) { exception.HandleException("featured products:", MethodBase.GetCurrentMethod().Name, ex, Session["user"]); Response.Redirect("/error", false); } } #endregion #region events /// /// Page Load Event /// /// /// protected void Page_Load(object sender, EventArgs e) { try { if (!Page.IsPostBack) { BindFeatured(); } } catch (Exception ex) { exception.HandleException("featured products:", MethodBase.GetCurrentMethod().Name, ex, Session["user"]); Response.Redirect("/error", false); } } #endregion }