ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Two Editors

This example also demonstrates how to use RequiredFieldValidator with Editor control.

Aa
 
Aa
 
ASP.NET
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor" TagPrefix="obout" %>
<obout:PopupHolder runat="server" id="popupHolder" DefaultAddPolicy="Demand" />
<asp:UpdatePanel ID="updatePanel1" runat="server">
<ContentTemplate>
<obout:Editor runat="server" Id="editor1" Height="275px" Width="100%" PopupHolderID="popupHolder" >
<TopToolbar Appearance="Lite" />
</obout:Editor>
<asp:RequiredFieldValidator ID="rfvEditor1" runat="server"
  ControlToValidate="editor1" InitialValue="" ErrorMessage="Empty" >*</asp:RequiredFieldValidator>
<obout:Editor runat="server" Id="editor2" Height="275px" Width="100%" PopupHolderID="popupHolder" >
<TopToolbar Appearance="Lite" />
</obout:Editor>
<asp:RequiredFieldValidator ID="rfvEditor2" runat="server"
  ControlToValidate="editor2" InitialValue="" ErrorMessage="Empty" >*</asp:RequiredFieldValidator>
<asp:Button runat="server" Text="Submit content" ID="Submit" />
</ContentTemplate>
</asp:UpdatePanel>

"That worked wonders. I am very pleased with the product. It's a huge improvement on the ASP.NET built-in control."

Mitesh Patel
Agilent Technologies

Random testimonial   All testimonials