Save to File

The ASPxHtmlEditor contents can be saved into a file (text file, html file, etc.) by using standard methods.

public partial class _Default : System.Web.UI.Page {
    protected void Page_Load(object sender, EventArgs e) {
    }
    protected void Button1_Click(object sender, EventArgs e) {
        string myHtml = ASPxHtmlEditor1.Html.ToString();
        string fileName = TextBox1.Text + DateTime.Today.Date.ToShortDateString() + ".txt";
        string fullFileName = Request.MapPath("Files/" + fileName);
        StreamWriter streamWriter = 
            new StreamWriter(new FileStream(fullFileName, FileMode.Create, FileAccess.Write));
        streamWriter.Write(myHtml);
        streamWriter.Close();
    }
}