/*----------------------------------------------------*/ public UserControl LoadHeaderFooterControl(String aAttribute, String aID, String aParentID) { UserControl aCtl; String aPath; aPath = cXMLDoc.AttributeToString(ModuleNode, aAttribute); if (aPath == "") { XmlNode aApplNode = WebAppl.Get_ApplNode(); XmlNode aModulesNode = aApplNode.SelectSingleNode("Modules"); aPath = cXMLDoc.AttributeToString(aModulesNode, aAttribute); if (aPath == "") { return(null); } } aPath = WebAppl.Build_RootURL(aPath); aCtl = CorePage_LoadControl(aPath, aID, mPageFrameCtl.FindControl(aParentID)); return(aCtl); }
/*----------------------------------------------------*/ private String ReturnHomeModuleDefaultPageKey() { XmlNode aApplNode = WebAppl.Get_ApplNode(); XmlNode aModulesNode = cXMLDoc.FindNode(aApplNode, "Modules/Module", "Key", "Home"); String aModuleConfigName = cXMLDoc.AttributeToString(aModulesNode, "ConfigFile"); cXMLDoc aModuleConfigDoc = new cXMLDoc(); aModuleConfigDoc.Load(Server.MapPath(Get_ConfigurationPath(aModuleConfigName) + aModuleConfigName)); XmlNode ModuleNode = aModuleConfigDoc.DocElement.SelectSingleNode("Module"); String aDefaultPageKey = cXMLDoc.AttributeToString(ModuleNode, "DefaultPageKey"); return(aDefaultPageKey); }