private string GetTemplateText() { string result = string.Empty; string virtualPath = this.GetResolvedTemplatePath(); if (virtualPath.IsNotEmpty()) { result = WebXmlDocumentCache.GetDocument(virtualPath); } return(result); }
protected string InitalJsonFor(string name) { var doc = WebXmlDocumentCache.GetDocument("~/App_Data/DraftingData.xml"); ArrayList list = new ArrayList(); if (string.IsNullOrEmpty(name) == false) { CategoryLinkAdapter.Instance.DoSearch(new string[] { "Root", name }, list, System.Xml.XmlReader.Create(new StringReader(doc))); } return(MCS.Web.Library.Script.JSONSerializerExecute.Serialize(list)); }
public static XmlReaderSettings GetDraftingLinkXmlReaderSettings() { var readerSettings = CategoryLinkAdapter.Settings; if (readerSettings == null) { readerSettings = new System.Xml.XmlReaderSettings() { IgnoreWhitespace = true, IgnoreComments = true, }; var schemaDoc = WebXmlDocumentCache.GetDocument("~/App_Data/CategorySchema.xsd"); var schema = XmlSchema.Read(new StringReader(schemaDoc), null); CategoryLinkAdapter.Settings = readerSettings; } return(readerSettings); }
private ArrayList GetResult(string[] paths) { ArrayList result = new ArrayList(); var doc = WebXmlDocumentCache.GetDocument("~/App_Data/DraftingData.xml"); var schemaDoc = WebXmlDocumentCache.GetDocument("~/App_Data/CategorySchema.xsd"); for (int i = 0; i < paths.Length; i++) { var path = paths[i]; var parts = path.Split('.', '>'); ArrayList list = new ArrayList(); if (parts.Length > 0 && parts[0] == "Root") { CategoryLinkAdapter.Instance.DoSearch(parts, list, XmlReader.Create(new StringReader(doc), Util.GetDraftingLinkXmlReaderSettings())); } result.Add(list); } return(result); }
protected void ctlUpload_LoadingDialogContent(object sender, LoadingDialogContentEventArgs e) { e.Content = WebXmlDocumentCache.GetDocument("~/inc/CommonMemberUploadTemplate.htm") + this.GetScript(this.ctlUpload.Tag); }
protected void ctlUpload_LoadingDialogContent(object sender, LoadingDialogContentEventArgs e) { e.Content = WebXmlDocumentCache.GetDocument("~/inc/AllMembersUploadTemplate.htm"); }