FCKeditor implementation in ASP.NET

R

Ronald

Hi,

I'm am trying to implement FCKeditor in my webapplication, but
unfortunatly, I haven't succeeded in doing this. After almost a week,
I finally got an compiled application, but now I get some new faults.
Can anyone help me please with this problem? This is my configuration
of the application.

*I have placed the FCKeditor in a subfolder named 'FCKeditor' in the
root of my application
*I have the classes of the FCKeditor_NET in a subfolder named
'FREDCK.FCKeditorV2
*I have placed the .dll file in the bin-folder of my application

in my .aspx-file I wrote

<%@ Register Tagprefix="fckeditorv2"
Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2"%>
<%@ Page ValidateRequest="false" language="c#"
Codebehind="WebForm1.aspx.cs" AutoEventWireup="false"
Inherits="EditorText.WebForm1" %>

and in the Body
<FCKEDITORV2:FCKEDITOR id="FCKeditor"
runat="server"></FCKEDITORV2:FCKEDITOR><br>

When I'm running the application, I get this error:

"Parser Error
Description: An error occurred during the parsing of a resource
required to service this request. Please review the following specific
parse error details and modify your source file appropriately.

Parser Error Message: The base class includes the field
'FCKeditor', but its type (FredCK.FCKeditorV2.FCKeditor) is not
compatible with the type of control (FredCK.FCKeditorV2.FCKeditor).

Source Error:


Line 13: <form id="Form1" method="post" runat="server">
Line 14: <asp:button id="btn" Text="Button"
Runat="server"></asp:button><br>
Line 15: <FCKEDITORV2:FCKEDITOR id="FCKeditor"
runat="server"></FCKEDITORV2:FCKEDITOR><br>
Line 16: <asp:textbox id="txtbox"
Runat="server"></asp:textbox></form>
Line 17: </body>"

It seems that he can never create the control. although the classes
are accessible.
Also in "design-view" I get 'Error Creating Control-FCKeditor' on the
place of the control.

Can anybody please give me a solution for this problem??

I would be very greatful


Ronald
 
R

recoil

I would consult the documentation that came with the product and try
their sample applications.
 
R

Ronald

Believe me, I did.
But in their documentations delivered is nothing mentioned of how to
implement the .net, and the samples won't work with me.

I can only manage to get something when I create a new solution, import
the project of the editor (the classes), and add their sample.aspx file
in the imported project. Only then I can view (in my design view) the
control, but that won't allow me to compile or run the project 'cause
it's a class-project.

As I said, I'm on it for quite a few days now, so...
 
H

Hans Kesting

Ronald said:
Hi,

I'm am trying to implement FCKeditor in my webapplication, but
unfortunatly, I haven't succeeded in doing this. After almost a week,
I finally got an compiled application, but now I get some new faults.
Can anyone help me please with this problem? This is my configuration
of the application.

*I have placed the FCKeditor in a subfolder named 'FCKeditor' in the
root of my application
*I have the classes of the FCKeditor_NET in a subfolder named
'FREDCK.FCKeditorV2
*I have placed the .dll file in the bin-folder of my application

Are you sure you need both the classes and the dll?
I think you need EITHER
* all classes in a separate (class library) project and a project
reference to this project
OR
* a *reference* (not just copy into the bin) to the dll

We had no problems with implementing FCKEditor, it works fine.
 
R

Ronald

I think the classes are OK, 'cause I can do everything with thme. I can
make references with them, I can make instances of them in my
source-code.

I only can't make the control on my aspx page. So what exaclty do you
need to place in your aspx page as code? I think that my problem is
situated in there. I've never worked with user created controls... and I
can't make it out of the samples. that code won't work in my
application.
 
T

TJS

I had little success with FCKeditor in ASP.net pages

Even though I was able to finally get the control to display in the page, it
then had the problems of :

-- the formatting droplists would not stay open in IE browser
-- it interfered with the css display of the page
-- the textarea could not be populated from a database
-- and that was enoughto say no thanks.
 
R

Ronald

Maybe, but I want to use it for typint stuff and write it then away in a
XML-file. So I won't be needing databases or other kind of stuff.

I you only could tell me how to display it so that I won't get the
'Error Creating Control'.

Unfortunatly, everyone tells me it's possible, but no one tells me how.
I know it's possible...
 
T

TJS

Extract the files from the download and put the entire folder into the root
of your website , I had mine named as "FCK_Editor"

create a test.aspx page and put this code into it.

<%@ Register TagPrefix="fckeditorv2" Namespace="FredCK.FCKeditorV2"
Assembly="FredCK.FCKeditorV2" %>
<script runat="server" >
Protected Overrides Sub OnLoad(e As EventArgs)
FCKeditor1.BasePath = "/FCK_Editor/"
End Sub 'OnLoad
</script>
<html>
<head>
<script language="javascript">
function FCKeditor_OnComplete( editorInstance )
{
if ( ! document.all ){
oFCKeditor.Config['EnableXHTML'] = false ;}
window.status = editorInstance.Description ;
}
</script>
</head>
<body >
<form runat="server">
<FCKeditorV2:FCKeditor
id="FCKeditor1" runat="server"
value='This is some <strong>sample text</strong>. You are using <a
href="http://www.fckeditor.net/">FCKeditor</a>.'>
</FCKeditorV2:FCKeditor>
</form>
</body>
</html>
 
R

Ronald

Thanks,

I just found a solution by myself yesterday.
I just puted the FCKeditor files in a subfolder named FCKeditor and the
.NET files in another subfolder named FCKeditorNET
Then, I only added a reference to the .dll file in
FCKeditorNET/bin/Release/FredCK.FCKeditorV2.dll
and putted <%@ Register TagPrefix="fckeditorv2"
Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %> on top
of my .aspx page.

And it worked perfect

thanks all
 
Joined
Jun 6, 2006
Messages
1
Reaction score
0
Can u post a prnt screen of the solutions files?

Can u post a prnt screen of the solutions files?

i did the same as you did but im still getting an error. Thanks
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top