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" TagPrefix="obout" Namespace="Obout.Ajax.UI.HTMLEditor" %>
<%@ Register Assembly="Obout.Ajax.UI" TagPrefix="obout" Namespace="Obout.Ajax.UI.HTMLEditor.ContextMenu" %>
<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" />
<EditPanel ContextMenuID="contextMenu" />
</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" />
<EditPanel ContextMenuID="contextMenu" />
</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>
<obout:DefaultContextMenu runat="server" ID="contextMenu" PopupHolderID="popupHolder" />

"Love the control by the way. Sure beats customizing a .net calendar. "

Josh Sheppard

Random testimonial   All testimonials