Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //财富排行
            TreasureFacade treasureFacade = new TreasureFacade();
            DataSet        ds             = treasureFacade.GetScoreRanking(10);

            rptScoreRanking.DataSource = ds;
            rptScoreRanking.DataBind();

            //魅力排行
            AccountsFacade accountsFacade = new AccountsFacade();

            ds = accountsFacade.GetLovesRanking(10);
            rptLovesRanking.DataSource = ds;
            rptLovesRanking.DataBind();
        }