示例#1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            DataAccessLayer dao    = new DataAccessLayer();
            SqlDataReader   reader = dao.GetAllFeaturedProperties();

            Repeater1.DataSource = reader;
            Repeater1.DataBind();
            reader.Close();

            SqlDataReader reader2 = dao.GetAllProperties(Constants.propertyEnabled);

            Repeater2.DataSource = reader2;
            Repeater2.DataBind();
            reader2.Close();

            SqlDataReader reader3 = dao.GetAllUsers();

            Repeater3.DataSource = reader3;
            Repeater3.DataBind();
            reader3.Close();
        }