.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

AjaxControlToolkit.HTMLEditor Please Help

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :ASP.Net

Ok, so this has been driving me mad for 2 days. I have a AjaxControlToolkit.HTMLEditor named Editor1. I created a custom button, but how do I get the contents of that button into my editor?

If I do Editor1.content = MYBUTTONVALUE it over rides everything i currently have in my content box.

Please don't point me to WYSIWYG applications either, b/c non are free.


View Complete Post

More Related Resource Links

AjaxControlToolkit.HTMLEditor adding H1,H2,H3


I like to use the ajaxcontroltoolkit, but i'm missing the H1,H2,H3 possibilities.
How can i add it to the editor?

With a override class i can add some buttons, but how can i add the posibility to set <h1></h1> on the selected text?
And what if i change the H1 to H3...

I'll got stuck in this, i know how to add a button and javascript to it, but don't know how to add the H1 to it.
Also would a dropdownbox be better i think.
Can someone help me?

Coding to add a button:

                AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton b = new AjaxControlToolkit.HTMLEditor.ToolbarButton.MethodButton();//= new AjaxControlToolkit.HTMLEditor.ToolbarButton.ImageButton();
                b.Visible = true;
                b.Attributes.Add("onclick", "javasciptcode");


AjaxControlToolkit.HTMLEditor javascript replace


Hi i am using the AjaxControlToolkit.HTMLEditor i have a javascript function to replace selected text, this works fine but rather than replacing the selected text i need to replace the selected html, is there away of gettin the html of the selected text?

so what i am using below i should change designPanel._getSelection(); to something else?

            var editor = $find(control);
            var editPanel = AjaxControlToolkit.HTMLEditor.LastFocusedEditPanel;
            var designPanel = editPanel.get_activePanel();

            // Ensure focus in design panel   

            var selection = designPanel._getSelection();

Need help, ASP.NET AJAX, AjaxControlToolkit


Hi, please forgive me if this question already answered before. I need help urgently.

I'm developing a web application (not website) which can be created under "New->Project->ASP.NET Web Application". I'm using Visual Studio 2010.

My problem is, all AJAX working fine except for the AjaxControlToolkit. I try to include the ValidatorCalloutExtender and it failed to work as in it won't display. However I created same thing using "New->Website->ASP.NET Website" instead and it works.

Question: Is AjaxControlToolkit only work on website but not web application? Is there anyway to use it on web application?

need help: HTMLEditor, Sql-Server 2005 and CrystalReport


Hi All,
i use the Ajax Control Toolkit HTMLEditor in VS 2008 web-project and save the formated text/content in Sql-Server 2005 - it works fine!

Now, i want print the formated text in a Report, with CrystalReport...??? is this possible?

How do i handle the process? i thing, i see the forest based on all the trees not more...

Can anyone help me? how to do?


need help: HTMLEditor, Sql-Server 2005 and CrystalReport


Hi All,

i use the Ajax Control Toolkit HTMLEditor in VS 2008 web-project and save the formated text/content in Sql-Server 2005 - it works fine!

Now, i want print the formated text in a Report, with CrystalReport...??? is this possible?

How do i handle the process? i thing, i see the forest based on all the trees not more...

Can anyone help me? please!




AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. - Error being thrown while building asp.net si


Everytime I build my site in VS2010 Beta I recieve a few ajax errors before the site loads here they are in order as they pop out on the build; 


throw new Error("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.");


And then Next this line is throwing an error, I have a watermark ajax field on the page that I created a long while ago;

Sys.registerComponent(Sys.Extended.UI.TextBoxWatermarkBehavior, { name: "watermark", parameters: [{name:"WatermarkText",type:"String"}, {name:"WatermarkCssClass",type:"String"}] });

 And then lastly;

 if (Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked())


Even with these exceptions the page loads fin

AjaxControlToolkit v3.0.20820.0 with SP 2010


First let me say sorry if this is the wrong forum or place for this question.  I followed a link from Roy Tian of Microsoft Online Community Support to post here.  If I'm in the wrong place please let me know

I've been working on a project using MOSS 2007 for quite some time and I've been using the Collapsible panel extender successfully.  After installing the same assemblies on SP 2010 I've found an issue with what I think is the CollasiblePanelExtender.  I receive the following JavaScript error:

Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://sschaff-d830win/ScriptResource.axd?d=hkE0C-mon3hEzu1u5RC5qNML7UetI_KAwydLEusX1UxMCjQ48uOPyaAWsV096dH0lkOHD4jIyPJVImyX1fkY6bRSzz2Wek3Zc08xuemhBTw1&t=ffffffffec2d9970

Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: ht

Maybe it's just late - HTMLEditor Content is always blank


Hi everyone - I'm new to the forum.  I searched around and couldn't find where anyone else has had this problem. (VB.net)

I have created a Class that Inherits the AjaxControlToolkit.HTMLEditor.Editor.  I override the FillTopToolbar and FillBottomToolbar.  I get the editor to display just fine.

It is a very simple form, that when a button is clicked, I have code in the code behind that would grab the Content from the Editor and process it.  The problem is that it doesn't matter what I type in, the Content retrieved is always, always Nothing or "".. it is mind boggling.  The control works in other areas of the application.

Here is the class:

Namespace Controls
    Public Class AdvancedHTMLEditor

Using tabs from the AjaxControlToolkit causes error: ...control contains code blocks (i.e. <% ... %>


I'm getting the error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

When attempting to add the tabs from the AjaxControlToolkit.  A little background..Theres an existing aspx page in a microsite which used the accordion control and the tabbed control ...I need to modify this page to use a different masterpage. 

The original site was .Net Framework 2.0 and the page in question used AjaxControlToolkit 1.0. which I manually installed originally.  Some of the site has been further developed using the .Net Framework 3.5.  (Come with AjaxControlToolkit) Now I have come to update this aspx page and I get the error above.

I have narrowed the down to the TabContainer (I think)  Does anyone have any experience with this sort of problem?  Also what version of the AjaxControlToolkit should be with the .Net Framework 3.5? I have 1.0.20229.20821. 

I also tried to browse to the AjaxControlToolkit.dll to add the tools to the tool box as they're missing... thinking this may be an indicator as to why it wasn't working. I get the error: 'There was an error loading types from assembly C:\inetpub\wwwroot\project\Bin\AjaxControlToolkit.dll Could not load file or assembly 'System.Web.Extensions. Version=

After a void the HTMLEditor gets the focus?

 I've got a aspx page with 2 update panels. The first has a HTMLEditor (ajax control toolkit), and the second had a textfield and a butten.after i push the button (of course there is some action but no focus things) afther the action is done the focus gets to the HTMLeditor.Why ? There is no page reload (because of the updatepanel) so why get the htmleditor the focus? And the importent thing, how can i solve this?

why runat="server" attribute is required for ajaxcontroltoolkit controls?

the doubts i have may looks silly,i started my carrier in dotnet recently,1)we are calling them as client side controls,then what is the need for runat server attribute?2)<asp:Button ID="Button1" runat="server" Text="Button" /> <asp:ConfirmButtonExtender ID="Button1_ConfirmButtonExtender" runat="server"              ConfirmText="Really?" Enabled="True" TargetControlID="Button1">  </asp:ConfirmButtonExtender>when i execute the above code,i observed that in status bar message as "connecting to localhost",if they are client side controls what  is the need of going to local server,why it is happening?Thanks in advance.

AjaxControlToolkit.CalendarExtender - highlight current date

I have used AjaxControlToolkit.CalendarExtender for calendar in my project.but anyhow I am unable to highlight current date  in calendar control.(Note: Current date I mean is today's date and not the selected date.)e.g.( If today is 15th August 2010, and I have selected 24 August 2010. then when I press calendar icon, I should see 15 august highlighted with different look or same as selected date 24 highlighted in August month of 2010 page in calendar popup.)Please guide me to accomplish the taskThanks in advance for support.

ë in Ajax control toolkit HTMLEditor in Firefox

If i use signs like ÃƒÂ« in the HTML Editor, in IE, its ok, and works.But if i use ë in firefox in the same page with the HTML Editor. If i press safe the ë is converted to: ? (copy past doesnt work well, but its a square if you put [] to each other). But how is this possible? And how can i solve this problem? In IE its working well, but 50% of the users of the system i build are using Firefox. So it should work in all editors......

Need help in create dynamic Tab using AjaxControlToolkit

Hi,I am trying to create dynamic tab using the below code but i am getting error.Dim myTab As New AjaxControlToolkit.TabPanel         myTab.ID = "myTab"         myTab.HeaderText = "Dynamic Tab"         Dim myLabel As New Label()         myLabel.Text = "hi"         myTab.Controls.Add(myLabel)         Me.TabContainer1.Tabs.Add(myTab)Error : AjaxControltoolkit.tabpanel is not definedI have checked in reference that AjaxControlToolkit.dll is added well. Please let me know if some other class need to import to solve this issue.BR,

AjaxControlToolkit.dll is not a Microsoft .NET module error

I am trying to install AjaxControlToolkit in VS2008. Everytime I try to get it in the Toolbox I get this error: AjaxControlToolkit.dll is not a Microsoft .NET module The only thing I can find on the net is to make sure the dll is in my Bin folder. When I first create the web project the dll is never in the bin folder I have to add it. But that still does not get rid of the error. Please help Thank YOu


 Hi, i  use the editor to ask user to modify content of a page.   Then i want to save the changes into a SQL DB.  My probleme is that the only thing i can get from the editor.content is the initial data.   The changes that user made seen to be not available.  I'm sure i'm missing something but what??? thank you

VS2010 Web App does not build Release - Could not load AjaxControlToolkit error

I have a VS2010 Web Application that uses the AjaxControlToolkit. I am able to build the Debug configuration. When I build the release configuration I get the following error message: Error 89 Could not load file or assembly 'file:///S:\My Code\Libraries\ACT\May 2010\AjaxControlToolkit.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) S:\My Code\EZFishing\EZFishing\EZFishing\SGEN EZFishing The location of the file is correct, and I just downloaded and unzipped there the Ajax CT. I have always built this app correctly before upgrading to VS2010 and ACT May 2010. Any idea of what is going on? Thank you in advance for your help. Mauro  
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend