protected void save_click(object sender, ImageClickEventArgs e) { // save prevalues; if (_prevalue != null) { _prevalue.Save(); } dt.Text = txtName.Text; dt.DataType = f.DataType(new Guid(ddlRenderControl.SelectedValue)); dt.Save(); ClientTools.ShowSpeechBubble(speechBubbleIcon.save, ui.Text("speechBubbles", "dataTypeSaved", null), ""); ClientTools.SyncTree(dt.Path, true); }
protected void save_click(object sender, ImageClickEventArgs e) { // save prevalues; if (_prevalue != null) { _prevalue.Save(); } dt.Text = txtName.Text; dt.DataType = f.DataType(new Guid(ddlRenderControl.SelectedValue)); dt.Save(); System.Web.HttpRuntime.Cache.Remove(string.Format("UmbracoDataTypeDefinition{0}", dt.UniqueId)); ClientTools.ShowSpeechBubble(BasePages.BasePage.speechBubbleIcon.save, ui.Text("speechBubbles", "dataTypeSaved", null), ""); ClientTools.SyncTree(dt.Path, true); }