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>

"I really appreciate the way you helped and moreover the help came in such an electrifying speed.. Cool. Keep up the good work !!"

Atanu
Rebaca Technologies Pvt. Ltd.

Random testimonial   All testimonials