AjaxControlToolkit namespace problem.

Discussion in 'ASP .Net' started by André Freitas, Jan 28, 2010.

  1. Im using AjaxControlToolkit HTML Editor, and following the documentation, i
    got the code:

    Webconfig:

    <assemblies>
    <add assembly="AjaxControlToolkit"/>
    </assemblies>

    <pages>
    <controls>
    <add tagPrefix="asp" namespace="AjaxControlToolkit.HTMLEditor"
    assembly="AjaxControlToolkit"/>
    </controls>
    </pages>

    AnyName.cs

    using AjaxControlToolkit.HTMLEditor;
    namespace MyControl
    {
    public class SimpleEditor : 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());
    }
    }
    }

    Test.aspx

    I got the line <%@ Register namespace="MyControls" tagprefix="custom" %>
    at the top of my aspx, but i cant find the reference to get a new instance
    of the object.

    What am i doing wrong?

    Regards
    André Freitas, Jan 28, 2010
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    2,490
  2. Nathan Sokalski
    Replies:
    6
    Views:
    1,638
    Nathan Sokalski
    Feb 12, 2007
  3. Replies:
    1
    Views:
    2,342
    Matteo Migliore
    Jul 20, 2007
  4. Nathan Sokalski
    Replies:
    0
    Views:
    1,435
    Nathan Sokalski
    Sep 17, 2007
  5. Andrea Gasperi

    AjaxControlToolkit problem with modal panels

    Andrea Gasperi, Nov 18, 2008, in forum: ASP .Net
    Replies:
    4
    Views:
    329
    Allen Chen [MSFT]
    Nov 27, 2008
Loading...

Share This Page