示例#1
0
        private void dgRules_UpdateCommand()
        {
            int partId   = int.Parse(Request.Form["cmbPart"]);
            int groupId  = int.Parse(Request.Form["cmbGroup"]);
            int actionId = int.Parse(Request.Form["cmbAction"]);

            if (!IsInternalRule(partId, groupId, actionId))
            {
                SecurityManager.RemoveAccessRule(groupId, partId, actionId);
                SecurityManager.AddAccessRule(groupId, partId, actionId);
            }
            //–едирект
            string path = Path.Full;

            path = path.Substring(0, path.IndexOf(Keys.UrlParamPageDelimiter[0]));
            Response.Redirect(path);
        }