• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

Installing fckeditor with ASP.NET 2.0

I am having trouble installing fckeditor with ASP.NET 2 in a Visual Studio 2005 project.  I think I followed the directions, but I am coming up with "ERROR 404 -  Not Found" when I debug the project. The steps I took are:

1.  Copied the dll file (FredCK.FCKeditorV2.dll) to the Bin directory and added a reference to it.
2.  Added the folder FCKeditor (with contents to the project).  
3.  Created a new page using the code listed in the snippet

What am I doing wrong?  My guess is that I am not placing the folder "FCKeditor" in the correct manner.  If someone could please assist me as soon as possible, that would be nice.

Thanks!
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
 
<FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server"> </FCKeditorV2:FCKeditor>

Open in new window

0
jjrr007
Asked:
jjrr007
  • 3
  • 3
1 Solution
 
prairiedogCommented:
You need to specify FCKEditor's basepath in your code.
In your page load, add something like this:
FCKeditor1.BasePath =
Request.ApplicationPath & "/UserControls/FCKeditor/"
I assume you placed FCKeditor folder under "UserControls" folder, if not, change it to match your folder structure.
0
 
jjrr007Author Commented:
Thanks for your time.  I made the change and received an error saying:
Compiler Error Message: CS0019: Operator '&' cannot be applied to operands of type 'string' and 'string'

I have attached the entire C# code (It is only one page in this project) in the snippet below.  I think you would have the ASP.net code too, but I have attached it in the snippet.  I am not sure what to change. What do you suggest?

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
 
public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        FCKeditor1.BasePath = Request.ApplicationPath & "/fckeditor/";
    }
}
 
***ASP.NET code is below***
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
 
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server">
        </FCKeditorV2:FCKeditor> 
    </div>
    </form>
</body>
</html>

Open in new window

0
 
prairiedogCommented:
I used VB.NET in my sample, and you are using C#. So change "&" to "+" for th e string concatenation in C#.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jjrr007Author Commented:
That worked perfectly.  I apologize for the delay.  I needed to leave the office at 5 PM last Friday and I don't work on Saturday or Sunday.  
0
 
jjrr007Author Commented:
Thanks for your expertise.
0
 
prairiedogCommented:
>>>I needed to leave the office at 5 PM last Friday and I don't work on Saturday or Sunday.  
I need to do that too, but I find myself some excuse to get on-line for some time during weekends, and my wife does not like it. :-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now