Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: Ajax
How to customise ajax html editor...I tried the following code and its not working...Base class inheriting error for the customised control ....Its working in a new project....Followed this link ..But somehow control not inheriting correctly..
Posted 5-Feb-13 6:34am
Sandeep Mewara at 5-Feb-13 12:54pm
So you say what you tried works in a new project but does not work in your other existing project? If so, see what wrong you are doing in your project. Further, it would help you if you share the error that you get.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Korathu 2 at 5-Feb-13 15:21pm
I tried the above..But unable to get the tag properly in my project..Either assembly error or unknown specified tag..
Under App_Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using AjaxControlToolkit.HTMLEditor;
using AjaxControlToolkit.HTMLEditor.ToolbarButton;
namespace CustomControls
public class CustomEditor : Editor
protected override void FillTopToolbar()
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold());
TopToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic());

protected override void FillBottomToolbar()
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode());
BottomToolbar.Buttons.Add(new AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode());

Then under the aspx page of content page
<%@ Register Namespace="CustomControls" TagPrefix="HTMLEditor" Assembly="CustomControls"%>
<HTMLEditor:CustomEditor runat="server" Height="500px" Width="100%" ID="editor" AutoFocus="true" ></HTMLEditor:CustomEditor>
I am not getting the tag source code ....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sarvesh Kumar Gupta 228
1 CHill60 200
2 DamithSL 153
3 OriginalGriff 138
4 Sergey Alexandrovich Kryukov 133

Advertise | Privacy | Mobile
Web03 | 2.8.140709.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid