aspnet-devexpress-dot-web-dot-aspxrichedit-dot-aspxrichedit-a237092d.md
Saves the active document in its original format at its original location.
Namespace : DevExpress.Web.ASPxRichEdit
Assembly : DevExpress.Web.ASPxRichEdit.v25.2.dll
NuGet Package : DevExpress.Web.Office
public void Save()
Public Sub Save
Call the Save method to initiate a save operation for the active document. The method invokes the Saving event, which allows you to implement custom saving logic. If you do not handle the event (the e.Handled property is not set to true), the control processes the document in the following ways:
View Example: How to save/load documents to/from a database
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Save() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
asp-net-web-forms-richedit-work-with-database/CS/ASPxRichEdit_Binding/Default.aspx.cs#L17
protected void SaveButton_Click(object sender, EventArgs e) {
RichEdit.Save();
}
asp-net-web-forms-richedit-work-with-database/VB/ASPxRichEdit_Binding/Default.aspx.vb#L27
Protected Sub SaveButton_Click(ByVal sender As Object, ByVal e As EventArgs)
RichEdit.Save()
End Sub
See Also