ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Submit and Cancel buttons

Aa
Cancel
Submit
ASP.NET
<%@ Register Assembly="Obout.Ajax.UI" Namespace="Obout.Ajax.UI.HTMLEditor" TagPrefix="obout" %>
<obout:Editor runat="server" Id="editor1" Height="330px" Width="100%"  >
 <TopToolbar Appearance="Lite" />
 <EditPanel OnCommand="onCommand" />
 <BottomToolBar ShowCancelButton="true" ShowSubmitButton="true" />
</obout:Editor>
C#
protected void onCommand(object sender, CommandEventArgs e)
{
   EditPanel editPanel = sender as EditPanel;
   // 'Submit' clicked
   if (e.CommandName == "submit")
   {
      ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "response",
      "setTimeout(function(){alert('Submitted HTML code length: " +
      editPanel.Content.Length.ToString() + "');},0);", true);
   }
}

"Thanks for the great support. I will buy the whole suite within a couple of days. You guys are the best!"

Toine A.G. Bastiaans

Random testimonial   All testimonials