473,320 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

FCKeditor implementation in ASP.NET

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
8 3273
I would consult the documentation that came with the product and try
their sample applications.

Nov 19 '05 #2
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Showjumper | last post by:
Has anyone been able to get FckEditor for dotnet to work successfully? I consulted google groups for past post on the matter but found onlu a few posts relating to it and still wasnt able to get it...
3
by: jef | last post by:
I've got a page with the FCKeditor on it. The editor works fine, however, since there is no documentation on ASP.NET implementations, I can't figure out how to access the editor text in my VB...
0
by: Gerry | last post by:
FCKeditor appears to be a good product. Unfortunately, the documentation is severaly lacking. (Due to this?)I am having a problem and I have a question. Problem: FCKeditor appears to function...
0
by: Stanley Cheung | last post by:
Hello all, Any one tried to implement fckeditor (htmleditor) on your application? i am tring to add fckeditor (www.fckeditor.net) on my dotnet application, but i can't find any connector for...
2
by: Ferret Face | last post by:
Has anyone had any success using ASP.NET with FCKEditor?
5
by: Jeff | last post by:
Hey ASP.NET 2.0 lets say I have a web page containing a FCKeditor, when this page loads it will fill the FCKeditor with some kind of text... I'm wondering how to set this text in the...
0
by: beemer127 | last post by:
Hello: I'm really new to both .NET and SQL, and I am still learning. I have the FCKeditor working, meaning that it displays in my page, and I have the SQL connection string established, but I'm...
1
by: Archana1 | last post by:
hi I want to add fckeditor in asp. but it have some error like page can not be display Please reply urgently my code is: <!-- #include...
1
by: ShirishKumar | last post by:
Hi, I have some problem with FCKEditor . First of all Required FiledValidator is not working for FCKeditor . I searched google and kept EnableClientScript of requiredfieldvalidator for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.