protected void Page_Load(object sender, EventArgs e) { if (this.ParentID > 0) { Slideshow slideshow = new Slideshow(new SiteData().ConnectionString); slideshow.ParentID = this.ParentID; slideshow.LoadDefault = this.LoadDefault; slideshow.Load(); rptSlideshow.DataSource = slideshow.Banners; rptSlideshow.DataBind(); } }