Beispiel #1
0
 private void fillAbout()
 {
     rptrAbout.Bind(DALAboutUs.GetAll().OrderBy(p => p.ID));
     lblCountAboutUs.Text = "(" + rptrAbout.Items.Count.ToString() + ")";
     foreach (RepeaterItem item in rptrAbout.Items)
     {
         HiddenField hdn = item.FindControl("hdnImage") as HiddenField;
         Image       img = item.FindControl("imgImage") as Image;
         img.ImageUrl = Functions.SITEURL.PathAndQuery + "Admin/assets/images/" + hdn.Value + "_s.jpg";
         img.Width    = new Unit(GetPrameterValue("SLIDERADMINWIDTH"));
         img.Height   = new Unit(GetPrameterValue("SLIDERADMINHEIGHT"));
     }
     rptrCounter.Bind(DALAboutUsCounter.GetAll().OrderBy(p => p.ID));
     lblCountCounter.Text = "(" + rptrCounter.Items.Count.ToString() + ")";
 }