Intersoft Support Center

Save and Load Toolbar Structure from XML File

WebTextEditor provides a property to save and load toolbar structure.

In this topic, you will learn how to save and load.

To save and load toolbar structure

  1. Drag two ASP.NET buttons into the WebForm.
  2. Use SaveToolBarsStructureToXml() method to save the toolbar structure, and use LoadToolBarsStructureFromXml() method to load the toolbar structure.
  3. Invoke the method in Button_Click server side event like following:
    C# Copy Code
    protected void Button1_Click(object sender, EventArgs e)
    {     
       WebTextEditor1.SaveToolBarsStructureToXml(Server.MapPath("XML/New.xml"));
    } 
    
    protected void Button2_Click(object sender, EventArgs e)
    {     
       WebTextEditor1.LoadToolBarsStructureFromXml(Server.MapPath("XML/New.xml"));
    }
                            
Previous Next