RichTextEditor - How to implement

I cannot get your rich text editor control to work in my ASP.NET app. I looked at your "FullToolset" sample and liked it so I copied all of the code, as is, to my app in a new page. I added all the images and spellcheck code exactly as it is to my code. I does not seem to recognize the following register element. What is to and what am I doing wrong?

<%@ Register Assembly="SourceCodeTab" Namespace="SourceCodeTab" TagPrefix="sb" %>


13 Replies

MA Maheswari Syncfusion Team May 24, 2007 06:33 AM UTC

Hi,

The sourcecode tab is used in our product samples to display the sample code. It is not necessary to include it when using our controls in applications. Could you please remove the following codes from .aspx file?

[ Code ]

<%@ Register TagPrefix="sb" Namespace="SourceCodeTab" Assembly="SourceCodeTab, Version=5.102.0.51, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" %>


I have modified the FullToolSet sample without SourceCodeTab. Please refer the below link for the modified sample: http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/F_61340/main.htm

Kindly let me know if this helps you.

Thank you for using Syncfusion products.

Regards,
Maheswari



BO bojan May 25, 2007 09:54 AM UTC

hi,

I am new in web devoloping, so probably what i'm going to ask you is vety easy to be done. but, since I'm using this tool, I was hoping that you might help me on this.

how can i implement rich text editor in my web app, so the output could be formated paragrafs. i dont know how to bind it to the field of my database, so when i type text in RichTextEditor and press update, that text would be inputed in my database formated as i wonted. i used data type varchar(max)in my database for this field.

plesa help


MA Maheswari Syncfusion Team May 26, 2007 06:18 AM UTC


Hi,

Please refer the below link which will help you to display formatted text as output using our RichTextEditor.
http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/Forum_61340/main.htm

I am working on creating a sample for binding the RTE with any field of database. I will update you on Monday.

Thank you for using Syncfusion products.

Regards,
Maheswari


AP Amy Patterson May 29, 2007 10:31 PM UTC

I am using version 4.202.0.37 and still cannot get it to compile. It doesn't like the register items. I am using visual studio 2005 with AJAX support.


MA Maheswari Syncfusion Team May 30, 2007 02:35 PM UTC


Hi Apatterson,

Could you please remove the following codes from .aspx file?

[ Code ]

<%@ Register TagPrefix="sb" Namespace="SourceCodeTab" Assembly="SourceCodeTab, Version=4.0.0.0, Culture=neutral, PublicKeyToken=3D67ED1F87D44C89" %>


I have modified the FullToolSet sample without SourceCodeTab. Please refer the below link for the modified sample:
FullToolset.zip

If still the problem exists, please try to reproduce the issue in the attached sample and send back to us. It will help us to investigate the issue clearly.

Thank you for using Syncfusion products.

Regards,
Maheswari.



AP Amy Patterson May 30, 2007 03:28 PM UTC

Here is the error message that I get when I try to compile the code. I have included the "syncfusion.tools.Web.dll" file in my references.

Error 1 Could not load file or assembly 'Syncfusion.Tools.Web, Version=4.202.0.372, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) C:\src\websites\bweb\Web\site\FullToolSet.aspx 3


MA Maheswari Syncfusion Team May 31, 2007 12:13 PM UTC


Hi Bojanpaun,

Sorry for the delay in getting back to you.

We have created a new direct - trac incident for RTE-databinding with Incident id #34468. Could you please follow up with this incident for further details?

Thank you for using Syncfusion products.

Regards,
Maheswari.P


MA Maheswari Syncfusion Team May 31, 2007 01:05 PM UTC

Hi Apatterson,

I am able to reproduce the mentioned issue. This is becasue the assemblies are not refered properly while running the RTE sample. Please add the below code s into your Web.Config file under tag :












Kindly let me know if this helps you.

Thank you for using Syncfusion products.

Regards,
Maheswari



AP Amy Patterson June 18, 2007 08:51 PM UTC

I still can't get it to work, I have attached the zip file with all of my files in it.

AJAXEnabledWebSite4.zip


AP Amy Patterson June 18, 2007 08:58 PM UTC

Server Error in '/AJAXEnabledWebSite4' Application.
--------------------------------------------------------------------------------

Failed to map the path '/Syncfusion/Resources/ToolsWeb/Scripts/'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Failed to map the path '/Syncfusion/Resources/ToolsWeb/Scripts/'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[InvalidOperationException: Failed to map the path '/Syncfusion/Resources/ToolsWeb/Scripts/'.]
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +3530156
System.Web.VirtualPath.MapPathInternal() +41
System.Web.HttpRequest.MapPath(VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) +122
System.Web.UI.Page.MapPath(String virtualPath) +45
Syncfusion.Web.UI.WebControls.Tools.RichTextEditor.GetResolvedScriptFilesPath() +91
Syncfusion.Web.UI.WebControls.Tools.RichTextEditor.OnPreRender(EventArgs e) +102
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210


GB Gokul B Syncfusion Team June 19, 2007 11:31 PM UTC

Hi Apatterson,

Thanks for your sample.

We couldn't able to reproduce the issue even with your sample. We tried to run your sample in AJAX enabled Environment. Unlike you mentioned, it doesn't reproduce the issue. However could you please do the following to overcome this issue.

* Run the "Re-Install Syncfusion Virtual Directories" from the Essential Studio Dashboard which will reconfigure your IIS settings. You can find the Dashboard in the below location.

Start --> Programs --> Syncfusion --> Essential Studio 5.1.0.51 --> Dashboard.

* Run the "Re-initialize Visual Studio.NET Toolbox" from the Essential Studio Dashboard which will reset your Visual studio .Net Toolbox.

Try this and let us know if it helps.

Regards,
Gokulkumar B


AP Amy Patterson June 21, 2007 04:51 PM UTC

I don't have a dashboard. I am running version 4.2.0.37


GB Gokul B Syncfusion Team June 22, 2007 06:55 PM UTC

Hi Apatterson,

Thanks for your update.

Please try the following.

* Run the "Reconfigure IIS" from the "TroubleShotting" which will reconfigure your IIS settings. You can find the Trouble Shotting in the below location.

Start --> Programs --> Syncfusion --> Essential Studio 4.2.0.37--> TroubleShotting.

* Run the "Reset Visual Studio Toolbox" from the same "TroubleShotting" which will your Visual Studio .Net Toolbox.

Try this and let me know if it helps.

Regards,
Gokulkumar B

Loader.
Up arrow icon