protected void deleteOne_Onclick(object sender, EventArgs e) { data.RemovePersonalGadget(this.SubjectID, this.PredicateURI); hasGadget = false; DrawProfilesModule(); upnlEditSection.Update(); string scriptstring = "document.getElementById('" + gadget.GetChromeId() + "').style.display = 'none';"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "hideshow", scriptstring, true); }
private void UpdateSecuritySetting(string securitygroup) { // maybe be able to make this more general purpose if (this.PredicateURI.StartsWith(Profiles.ORNG.Utilities.OpenSocialManager.ORNG_ONTOLOGY_PREFIX)) { Profiles.ORNG.Utilities.DataIO data = new Profiles.ORNG.Utilities.DataIO(); if ("0".Equals(securitygroup)) { data.RemovePersonalGadget(this.Subject, this.PredicateURI); } else { data.AddPersonalGadget(this.Subject, this.PredicateURI); } } else if (!"0".Equals(securitygroup)) { Edit.Utilities.DataIO data = new Profiles.Edit.Utilities.DataIO(); data.UpdateSecuritySetting(this.Subject, data.GetStoreNode(this.PredicateURI), Convert.ToInt32(securitygroup)); } //Framework.Utilities.Cache.AlterDependency(this.Subject.ToString()); }