SaveToPortableXml() public method

public SaveToPortableXml ( XmlWriter Writer, string controlId ) : void
Writer XmlWriter
controlId string
return void
        protected void ExportData(object sender, EventArgs e)
        {
            RotatorSettings rotatorSettings = new RotatorSettings();
            rotatorSettings.LoadFromDB(Request.QueryString["controlId"]);

            StringBuilder strXML = new StringBuilder();
            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;
            settings.OmitXmlDeclaration = true;
            XmlWriter Writer = XmlWriter.Create(strXML, settings);

            rotatorSettings.SaveToPortableXml(Writer, Request.QueryString["controlId"]);
            Writer.Close();

            tbExportData.Text = strXML.ToString();
            tbExportData.Visible = true;

            _ActiveTab = 2;
        }
        public string ExportModule(int ModuleID)
        {
            StringBuilder strXML = new StringBuilder();
            XmlWriterSettings settings = new XmlWriterSettings();
            settings.Indent = true;
            settings.OmitXmlDeclaration = true;
            XmlWriter Writer = XmlWriter.Create(strXML, settings);

            RotatorSettings.Init(new DnnConfiguration());
            RotatorSettings Settings = new RotatorSettings();
            Settings.LoadFromDB(ModuleID.ToString());

            Settings.SaveToPortableXml(Writer, ModuleID.ToString());

            Writer.Close();

            return strXML.ToString();
        }