Пример #1
0
    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();
            }
        }
    }
Пример #2
0
 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);
         }
     }
 }