protected void FormView1_PageIndexChanging(object sender, FormViewPageEventArgs e)
        {
            TextBox tb = FormView1.FindControl("TextBox1") as TextBox;
            ?????   FCKeditorV2 = FormView1.FindControl("FCKeditor1") as ????;
        }
       
        怎么获得FCKeditorV2这个编辑控件的对象?

解决方案 »

  1.   

    FCKeditorV2 fck = FormView1.FindControl("FCKeditor1") as FCKeditorV2
      

  2.   

    也可以
    FCKeditorV2 fck =(FCKeditorV2)FormView1.FindControl("FCKeditor1");
      

  3.   

      <FCKeditorV2:FCKeditor id="txtContent" runat="server" Width="100%" Height="200px"></FCKeditorV2:FCKeditor>FCKeditorV2 fck = FormView1.FindControl("txtContent") as FCKeditorV2;
     
      

  4.   

    在那里引用了。。 这样写吗?using FredCK.FCKeditorV2;
     反正向我这样写是错的。。 好像是引用的问题,就是不知道怎么搞了。。我的QQ:9245162  
       
       希望有高手能帮我搞好。。都为这个问题搞了好几天了
      

  5.   

    方法一:
    FredCK.FCKeditorV2.FCKeditor fck=FormView1.FindControl("FCKeditor1") as FredCK.FCKeditorV2.FCKeditor;方法二:
    引入命名空间:using FredCK.FCKeditorV2;FCKeditor fck=FormView1.FindControl("FCKeditor1") as FCKeditor;
      

  6.   

    我刚刚做出来了。。 呵。。 和我想的一样 是的就是这样做了。。 谢谢了。。  
      分数给你了。。 呵。。 我是这样写的using FredCK.FCKeditorV2;FCKeditor fck = FormView1.FindControl("FCKeditor1") as FCKeditor;