aspnet-devexpress-dot-web-dot-aspxhtmleditor-dot-aspxhtmleditorsettings-49b17ddd.md
Gets or sets a value that specifies whether the HTML View is available to end-users.
Namespace : DevExpress.Web.ASPxHtmlEditor
Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(true)]
public bool AllowHtmlView { get; set; }
<DefaultValue(True)>
Public Property AllowHtmlView As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | true |
true to enable the editor’s HTML View; otherwise, false.
|
You can access this nested property as listed below:
| Library | Object Type | Path to AllowHtmlView |
|---|---|---|
| ASP.NET MVC Extensions | HtmlEditorSettings |
.Settings .AllowHtmlView
| | ASP.NET Web Forms Controls | ASPxHtmlEditor |
.Settings .AllowHtmlView
|
If the AllowHtmlView property is set to false, the editor’s HTML tab is not displayed, and end-users are not allowed to modify the editor’s content by editing the pure HTML markup.
The complete sample project is available in the DevExpress Code Central database at E377.
...
<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" Html='<%# Bind("Html") %>'>
<SettingsImageUpload>
<ValidationSettings AllowedFileExtensions=".jpg, .png, .gif">
</ValidationSettings>
</SettingsImageUpload>
<Settings AllowDesignView="False" AllowHtmlView="False" />
</dx:ASPxHtmlEditor>
...
See Also