Example #1
0
    private void ShowInfo(int _id)
    {
        ps_manager_role model = new ps_manager_role();

        model.GetModel(_id);
        Litrole_name.Text = model.role_name;
        NavBind();

        for (int i = 0; i < rptList.Items.Count; i++)
        {
            CheckBox cb               = (CheckBox)rptList.Items[i].FindControl("chkId");
            int      nav_id           = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
            ps_manager_role_value bll = new ps_manager_role_value();
            if (bll.QXExists(_id, nav_id))
            {
                cb.Checked = true;
            }
        }
    }