RadioButtonList

  从数据库里读取数据绑定在RadioButtonList

this.rdlUserRole.DataSource = new UserRoleManager().GetAllUserRoles();
        this.rdlUserRole.DataTextField = "UserRoleName"; 
        this.rdlUserRole.DataValueField = "UserRoleId";
        this.rdlUserRole.DataBind();

posted @ 2012-02-15 10:20  小小A梦  阅读(164)  评论(0编辑  收藏  举报