Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Using DataBinding with a WebTextEditor
posted

Can and How do you use data binding with a WebTextEditor?

  • 24497
    posted

    Hi Naish,

    The WebTextEditor has enabled Bindable attribute for its Value property. That means that it can be used by exactly same way as Text property of asp:TextBox. For example, if you have

    <asp:FormView ID="FormView1" ...>
     <EditItemTemplate>
      ...
      <asp:TextBox ID="NameTextBox" runat="server" Text='<%# Bind("Name") %>' />
     </EditItemTemplate>
    </asp:FormView>

    Then you may replace TextBox by WebTextEditor

    <asp:FormView ID="FormView1" ...>
     <EditItemTemplate>
      ...
      <ig:WebTextEditor ID="WebTextEditor1" runat="server" Value='<%# Bind("Name") %>'></ig:WebTextEditor>
     </EditItemTemplate>
    </asp:FormView>