I have had a website running with HtmlEditor for years but its not working any more.
I've drilled it down to an isolated case: When HtmlEditor used inside a FormView with more than one control it doesn't work.
When its the only control on the page it will update its contents back to the database.
An idea of the stripped down code is below. If I remove the first textbox and save it works ok, when I add it in then it doesn't manage to pass the `.Content` value back through the `Bind()`.
I've spent hours on it today trying combinations out but cannot find anything.
There is no codebehind.
```
<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/AdminPage.master" AutoEventWireup="true" CodeBehind="HtmlEditorBroken.aspx.cs" Inherits="ExampleWebsite._TEST.HtmlEditorBroken" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HtmlEditor" TagPrefix="HTMLEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ToolkitScriptManager1" runat="server" />
<asp:FormView ID="ModifyProperty" runat="server" DataSourceID="srcProperties" DefaultMode="Edit" DataKeyNames="PropertyId,Version">
<EditItemTemplate>
<h1>Edit property</h1>
<div class="form-horizontal">
<div class="form-group">
<asp:Label ID="Label6" runat="server" Text="Feature 1:" CssClass="col-sm-3 control-label" AssociatedControlID="Feature1TextBox"></asp:Label>
<div class="col-sm-9">
<asp:TextBox ID="Feature1TextBox" runat="server" CssClass="form-control" Text='<%# Bind("Feature1") %>'
ValidationGroup="AddProperty" />
<div>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="Feature1TextBox"
Display="Dynamic" CssClass="ValidationError" SetFocusOnError="true" ErrorMessage="Feature 1 is required."
ValidationGroup="AddProperty" />
</div>
</div>
</div>
<div class="form-group">
<asp:Label ID="Label17" runat="server" Text="Description:" CssClass="col-sm-3 control-label" AssociatedControlID="DescriptionEditor"></asp:Label>
<div class="col-sm-9">
<HTMLEditor:Editor ID="DescriptionEditor" runat="server" Content='<%# Bind("Description") %>' Height="300px" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CssClass="btn btn-primary" ValidationGroup="AddProperty"
CommandName="Update" Text="Update" />
<asp:LinkButton ID="UpdateCancelButton" runat="server" CssClass="btn btn-default" ValidationGroup="AddProperty"
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</div>
</div>
</div>
</EditItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="srcProperties" runat="server" DataObjectTypeName="DataLibrary.Entities.Property"
OldValuesParameterFormatString="oldEntity"
ConflictDetection="CompareAllValues" SelectMethod="SelectByPropertyId" TypeName="DataLibrary.Entities.Property"
UpdateMethod="Update">
<SelectParameters>
<asp:QueryStringParameter Name="propertyId" QueryStringField="PropertyId" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="oldEntity" Type="Object" />
<asp:Parameter Name="newEntity" Type="Object" />
</UpdateParameters>
</asp:ObjectDataSource>
</asp:Content>
```
Comments: Would you clarify what version of the AJAX Control Toolkit you are using?
I've drilled it down to an isolated case: When HtmlEditor used inside a FormView with more than one control it doesn't work.
When its the only control on the page it will update its contents back to the database.
An idea of the stripped down code is below. If I remove the first textbox and save it works ok, when I add it in then it doesn't manage to pass the `.Content` value back through the `Bind()`.
I've spent hours on it today trying combinations out but cannot find anything.
There is no codebehind.
```
<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/AdminPage.master" AutoEventWireup="true" CodeBehind="HtmlEditorBroken.aspx.cs" Inherits="ExampleWebsite._TEST.HtmlEditorBroken" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HtmlEditor" TagPrefix="HTMLEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:ScriptManager ID="ToolkitScriptManager1" runat="server" />
<asp:FormView ID="ModifyProperty" runat="server" DataSourceID="srcProperties" DefaultMode="Edit" DataKeyNames="PropertyId,Version">
<EditItemTemplate>
<h1>Edit property</h1>
<div class="form-horizontal">
<div class="form-group">
<asp:Label ID="Label6" runat="server" Text="Feature 1:" CssClass="col-sm-3 control-label" AssociatedControlID="Feature1TextBox"></asp:Label>
<div class="col-sm-9">
<asp:TextBox ID="Feature1TextBox" runat="server" CssClass="form-control" Text='<%# Bind("Feature1") %>'
ValidationGroup="AddProperty" />
<div>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="Feature1TextBox"
Display="Dynamic" CssClass="ValidationError" SetFocusOnError="true" ErrorMessage="Feature 1 is required."
ValidationGroup="AddProperty" />
</div>
</div>
</div>
<div class="form-group">
<asp:Label ID="Label17" runat="server" Text="Description:" CssClass="col-sm-3 control-label" AssociatedControlID="DescriptionEditor"></asp:Label>
<div class="col-sm-9">
<HTMLEditor:Editor ID="DescriptionEditor" runat="server" Content='<%# Bind("Description") %>' Height="300px" />
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CssClass="btn btn-primary" ValidationGroup="AddProperty"
CommandName="Update" Text="Update" />
<asp:LinkButton ID="UpdateCancelButton" runat="server" CssClass="btn btn-default" ValidationGroup="AddProperty"
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</div>
</div>
</div>
</EditItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="srcProperties" runat="server" DataObjectTypeName="DataLibrary.Entities.Property"
OldValuesParameterFormatString="oldEntity"
ConflictDetection="CompareAllValues" SelectMethod="SelectByPropertyId" TypeName="DataLibrary.Entities.Property"
UpdateMethod="Update">
<SelectParameters>
<asp:QueryStringParameter Name="propertyId" QueryStringField="PropertyId" Type="Int32" />
</SelectParameters>
<UpdateParameters>
<asp:Parameter Name="oldEntity" Type="Object" />
<asp:Parameter Name="newEntity" Type="Object" />
</UpdateParameters>
</asp:ObjectDataSource>
</asp:Content>
```
Comments: Would you clarify what version of the AJAX Control Toolkit you are using?