# TextControlSettings.SaveDocumentQuestionDialogEnabled Property

> Determines if a confirmation dialog should be shown before discarding unsaved changes.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControlSettings.SaveDocumentQuestionDialogEnabled Property
- **407 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/savedocumentquestiondialogenabled-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/savedocumentquestiondialogenabled-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/savedocumentquestiondialogenabled-property/llms-full.txt

---

### Description

Determines if a confirmation dialog should be shown before discarding unsaved changes.

### Syntax

```csharp
public bool SaveDocumentQuestionDialogEnabled { get; set; }
```

```vbnet
Public Property SaveDocumentQuestionDialogEnabled As Boolean
```

### Examples

In the current ASP.NET Core integration, `SaveDocumentQuestionDialogEnabled` is configured through `TextControlSettings`. The following example sets it while creating the editor configuration.

```csharp
textControlSettings.SaveDocumentQuestionDialogEnabled = true;
if (textControlSettings.SaveDocumentQuestionDialogEnabled)
{
    Console.WriteLine("Save Document Question Dialog Enabled is enabled for Text Control Settings.");
}
```

```vbnet
textControlSettings.SaveDocumentQuestionDialogEnabled = True
If textControlSettings.SaveDocumentQuestionDialogEnabled Then
    Console.WriteLine("Save Document Question Dialog Enabled is enabled for Text Control Settings.")
End If
```

---

## Nearby

- **Previous:** [TextControlSettings.ImageFileDirectory Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/imagefiledirectory-property/llms-full.txt)
- **Next:** [TextControlSettings.ServiceAddress Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/serviceaddress-property/llms-full.txt)
