Hello. I am trying to integrate the CKFinder control with a CKEditor that is inside a FormView. I am using C# and I am not that familiar with it. Here is the code behind:
It tells me that CKEditorControl1 does not exist in the current context. I assume I have to use FindControl to do this, but I don't know how to do that in C#. Can someone help me with this? Thanks!
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class admin_Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
GridView1.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
FormView1.ChangeMode(FormViewMode.Insert);
}
protected override void OnLoad(EventArgs e)
{
CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
_FileBrowser.BasePath = "/ckfinder";
_FileBrowser.SetupCKEditor(CKEditorControl1);
}
}It tells me that CKEditorControl1 does not exist in the current context. I assume I have to use FindControl to do this, but I don't know how to do that in C#. Can someone help me with this? Thanks!
