protected override void OnLoad(EventArgs e) { base.OnLoad(e); id = ConvertHelper.ToInt32(Request["id"]); role = privilege.GetRole(id); if (role == null) { ShowError("该角色不存在"); } if (!X.IsAjaxRequest && !IsPostBack) { _txtRolename.SetValue(role.Name); _comboStatus.SetValue(role.Status); _txtMemo.SetValue(role.Description); _txtRolename.Disable(); _hidId.SetValue(id); } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); id = ConvertHelper.ToInt32(Request["id"]); role = privilege.GetRole(id); if (role == null) { ShowError("该角色不存在"); } if (!X.IsAjaxRequest && !IsPostBack) { _txtRolename.SetValue(role.Name); _comboStatus.SetValue(role.Status); _txtMemo.SetValue(role.Description); _txtRolename.Disable(); _hidId.SetValue(id); } }