Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Getting sys.InvalidOperation using ajax control toolkit HTMLEditor control

$
0
0

Hello,

I've seen similar posts, usually concerning the tabcontrol in the toolkit. I've tried the solution offered to no avail. I found this thread but didn't work for me:

http://forums.asp.net/t/1421360.aspx?Sys+InvalidOperationException+Component+not+found+IE7

I'm using VS 2010, framework version 3.5 along with 3.5 version of AjaxControltoolkit. In debugging, I can access the control in code behind but then the java script error is raised.

Additional info: I'm using an ajax call to populate a div container and pop it up within another page. The ajax call is working fine but the javascript error is raised.

My html looks like this:

<%@ Register Namespace="MyControls" TagPrefix="mc" %><mc:HtmEditor runat="server" ID="txtPDDesc" Height="75px" Width="98%" EnableViewState="true" />

MyControls looks like this:

Imports Microsoft.VisualBasic
Imports AjaxControlToolkit.HTMLEditor

Namespace MyControls
   Public Class HtmEditor
      Inherits Editor

      Public Sub New()
         MyBase.New()
      End Sub

      Protected Overrides Sub FillTopToolbar()
         TopToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.FontSize())
         TopToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.BulletedList())
         TopToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.Bold())
         TopToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.Underline())
         TopToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.Italic())
      End Sub

      Protected Overrides Sub FillBottomToolbar()
         BottomToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.DesignMode())
         BottomToolbar.Buttons.Add(New AjaxControlToolkit.HTMLEditor.ToolbarButton.PreviewMode())
      End Sub
   End Class
End Namespace

Can anyone help me resolve this error?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>