示例#1
0
    protected void PupolateControls()
    {
        int userId = 0;

        if (Request.QueryString["userId"] != "" && Request.QueryString["userId"] != null)
        {
            userId = Int32.Parse(Request.QueryString["userId"]);
        }

        UserList.DataSource = UserAccess.GetAdminUserListById(userId);
        UserList.DataBind();

        OAuthList.DataSource = OAuthAccess.GetAdminOAuthList(userId);
        OAuthList.DataBind();

        UserCategoryList.DataSource = UserCategoryAccess.GetAdminUserCategoryList(userId);
        UserCategoryList.DataBind();

        ZhuanTiList.DataSource = ZhuanTiAccess.GetAdminZhuanTiList(userId);
        ZhuanTiList.DataBind();

        CardList.DataSource = CardAccess.GetAdminCardList(userId);
        CardList.DataBind();

        List.DataSource = ItemAccess.GetAdminItemListByUserId(userId);
        List.DataBind();
    }