private void LoadUser() { Power.PowerService powerService = new Power.PowerService(); DataSet ds = powerService.UserGroup_GetList("USER_STR", "GROUP_ID=" + Request.QueryString["GROUP_ID"].ToString()); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) txtUsers.Value = ds.Tables[0].Rows[0]["USER_STR"].ToString(); else Response.Write("<script>alert('加载信息失败!');</script>"); }
protected void Page_Load(object sender, EventArgs e) { gdvPriData.Style.Add("display", "none"); gdvUserGroupData.Style.Add("display", "none"); Power.PowerService services = new Power.PowerService(); gdvPriData.DataSource = services.Get_GroupList(""); gdvPriData.DataBind(); txtAccount.Value = strAccount; gdvUserGroupData.DataSource = services.UserGroup_GetList("GROUP_ID,GROUP_NAME,USER_ID", "USER_ID is null or USER_ID='' or USER_ID='" + strAccount + "'"); gdvUserGroupData.DataBind(); }