By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,869 Members | 1,742 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,869 IT Pros & Developers. It's quick & easy.

FCKeditor implementation in ASP.NET

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
I would consult the documentation that came with the product and try
their sample applications.

Nov 19 '05 #2

P: n/a
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...

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

P: n/a
Ronald wrote:
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.

--
Hans Kesting
Nov 19 '05 #4

P: n/a
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.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #5

P: n/a
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.

"Ronald" <ro***********@yahoo.co.uk> wrote in message
news:85*************************@posting.google.co m...
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

Nov 19 '05 #6

P: n/a
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...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #7

P: n/a
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>

"Ronald" <li**********@hotmail.com> wrote in message
news:OZ**************@TK2MSFTNGP09.phx.gbl...
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...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #8

P: n/a
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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.