Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using EPiServer;
- using EPiServer.Core;
- namespace NetR.Project.Templates.Units
- {
- public partial class TeaserList : SiteUserControlBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- PropertyData pd = CurrentPage.Property["TeaserContainer"];
- if (pd != null && !pd.IsNull)
- {
- PageReference pageReference = pd.Value as PageReference;
- if (!PageReference.IsNullOrEmpty(pageReference))
- {
- var teasers = GetChildren(pageReference);
- plTeaserList.DataSource = teasers;
- plTeaserList.DataBind();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement