public string RenderCustomControl(XmlDocument moduledoc, XmlDocument node) { System.Text.StringBuilder html = new System.Text.StringBuilder(); Framework.Utilities.ModulesProcessing mp = new ModulesProcessing(); foreach (XmlNode module in moduledoc) { this.Modules = mp.FetchModules(module); foreach (Module m in this.Modules) { html.Append(mp.RenderView(mp.LoadControl(m.Path, this.MasterPage, node, m.ParamList, this.Namespaces))); } this.Modules = null; } return(html.ToString()); }
public string RenderCustomControl(XmlDocument moduledoc, XmlDocument node) { System.Text.StringBuilder html = new System.Text.StringBuilder(); Framework.Utilities.ModulesProcessing mp = new ModulesProcessing(); foreach (XmlNode module in moduledoc) { this.Modules = mp.FetchModules(module); foreach (Module m in this.Modules) { html.Append(mp.RenderView(mp.LoadControl(m.Path, this.MasterPage, node, m.ParamList, this.Namespaces))); } this.Modules = null; } return html.ToString(); }