protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request["id"] != null) { U_RolesBU role1 = new U_RolesBU(); Hashtable ht = role1.GetRoleDetailByID(Request["id"]); this.TextBox1.Text = ht["roleusers"].ToString(); role1.Close(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request["id"] != null) { U_RolesBU role1 = new U_RolesBU(); Hashtable ht = role1.GetRoleDetailByID(Request["id"]); this.role.Text = ht["role"].ToString(); this.remark.Text = ht["remark"].ToString(); role1.SetRoleUsers(this.AllUsers, ht["roleusers"].ToString()); role1.Close(); } else { Response.Redirect("~/Error.aspx", true); } } }