Hi .. I am working in ASP.Net 2.0. I have added the reference of fckeditor and include it in the class file. But whe I try to set:
FCKeditor1.BasePath = this.GetBasePath();
Then I get that the method GetBasePath is not included. Why this is happening?
Someone told me I must set the path. Can anybody tell me how can I set the Path.
One more thing, When I try to run the sample01.aspx, I received the compile time error:
"The name 'FCKEditor1' does not exist in the current context."
Can anyboyd tell me the solution of the above two problems?
Thanks
FCKeditor1.BasePath = this.GetBasePath();
Then I get that the method GetBasePath is not included. Why this is happening?
Someone told me I must set the path. Can anybody tell me how can I set the Path.
One more thing, When I try to run the sample01.aspx, I received the compile time error:
"The name 'FCKEditor1' does not exist in the current context."
Can anyboyd tell me the solution of the above two problems?
Thanks
Re: How to set path of fckEditor in ASP.Net 2.0?
this looking for a method within your class or code-behind file. I'd need to see more of the code for that one, but it looks as if you don't have a GetBasePath method in your code.
In the examples there is a method 'GetBasePath' (below) make sure you have it included. To be honest this is just used for the examples, there are easier ways to set the base path, but it makes the examples more portable. in fact, it actually says something like this in the code comment below...
"The name 'FCKEditor1' does not exist in the current context." is almost certainly because you don't have the FCKEditor assembly added to your project. Make sure you have FredCK.FCKeditorV2.dll in your bin folder or a valid reference to it in your application. Or possibly your folder structure is a bit screwing and you have all the correct folders, just not in the right place. The bin folder containing the FredCK.FCKeditorV2 assembly must be in the root of your application.
There is also a short, but good integration guide here.