private void cbSecurityToggle_Callback(object sender, CallBackEventArgs e)
        {
            string action   = e.Parameters[0].ToString();
            int    pId      = PermissionsId;
            string secId    = e.Parameters[2].ToString();
            int    secType  = Convert.ToInt32(e.Parameters[3].ToString());
            string key      = e.Parameters[4].ToString();
            string returnId = e.Parameters[5].ToString();

            Data.Common db   = new Data.Common();
            string      sOut = string.Empty;

            if (action == "delete")
            {
                Permissions.RemoveObjectFromAll(secId, secType, pId);
            }
            else if (action == "addobject")
            {
                if (secType == 1)
                {
                    UserController uc = new UserController();
                    User           ui = uc.GetUser(PortalId, ModuleId, secId);
                    if (ui != null)
                    {
                        secId = ui.UserId.ToString();
                    }
                    else
                    {
                        secId = string.Empty;
                    }
                }
                else
                {
                    if (secId.Contains(":"))
                    {
                        secType = 2;
                    }
                }
                if (!(string.IsNullOrEmpty(secId)))
                {
                    string permSet = db.GetPermSet(pId, "View");
                    permSet = Permissions.AddPermToSet(secId, secType, permSet);
                    db.SavePermSet(pId, "View", permSet);
                }
            }
            else
            {
                string permSet = db.GetPermSet(pId, key);
                if (action == "remove")
                {
                    permSet = Permissions.RemovePermFromSet(secId, secType, permSet);
                }
                else
                {
                    permSet = Permissions.AddPermToSet(secId, secType, permSet);
                }
                db.SavePermSet(pId, key, permSet);
                sOut = action + "|" + returnId;
            }
            LiteralControl lit = new LiteralControl(sOut);

            lit.RenderControl(e.Output);
        }