是这样滴,我写了个记事本的模块。添加的时候都没问题。
就是我的编辑模块是先进入一个列表的页面,有2个超链接其中是个编辑,编辑超链这个页面时用ascx做的,但是怎么不能显示了,就出一个大的文本域了,而且得不到值。。<%@ Control Language="C#" AutoEventWireup="true" CodeFile="modifynotebook.ascx.cs" Inherits="sys_notebook_modifynotebook" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %><%@ Register assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dxtc" %>
<%@ Register assembly="DevExpress.Web.v9.1, Version=9.1.5.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073" namespace="DevExpress.Web.ASPxClasses" tagprefix="dxw" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %> 
 <link href="../../style01/css/table.css" rel="stylesheet" type="text/css" /> 
    <style type="text/css">
        .style1
        {
            height: 23px; /*background-color:#bcd5eb;*/;
            background-color: #DFE8F7;
            color: black;
            font-size: 13px;
            text-align: right;
            width: 424px;
        }
        .style2
        {
            width: 424px;
        }
    </style>
    <table width=100% class="dataTable" cellpadding='0' cellspacing='0' border='1' bordercolorDark='white' bordercolorLight='#BEBEBE'>
        <tr> 
           <td height="25" colspan="4"   class="dataTitle">维护记事本信息</td>
        </tr>
         <tr>
             <TD height="22"  class="style1" >  <dxe:ASPxLabel ID="ASPxLabel3" runat="server" Text="记事本标题:">
                   </dxe:ASPxLabel></TD>
         <TD  class="input" > 
                 <dxe:ASPxTextBox ID="note_title" runat="server" 
                       Value='<%# Eval("note_title") %>'  >
                  </dxe:ASPxTextBox>
             </TD>
         </tr>
           <tr>
        <td class="style2"> <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server"  BasePath="~/FCKeditor/"  Height="100%" EnableViewState="True">
             </FCKeditorV2:FCKeditor>
        </td></tr>
         
        <tr>
          <td  colspan="4"  class="dataTitle">
           <asp:Button ID="Button1" runat="server" Text="保存" OnClick="Button1_Click" />
         
            </td>
        </tr>
    </table>请大家帮我看看谢谢了。

解决方案 »

  1.   

    你给的代码也看不到链接
    给fckeditor赋值
    FCKeditor1.value="";//你的内容
      

  2.   

    我们查询都是自定义的,都封装好了,在那里定义下编辑的路径就可以了,路径肯定没问题。
    <td class="style2"> <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server"  BasePath="~/FCKeditor/"  Height="100%" EnableViewState="True" 难道这里加 Value='<%# Eval("FCKeditor1.Value") %>'  还是就加个Value="FCKeditor1.Value">
                 </FCKeditorV2:FCKeditor>
            </td></tr>值看见就成,关键是编辑器都看不到了,就能显示出一个大文本域而已,什么插入图片,对齐什么的都不显示了
      

  3.   

    浏览器也会造成这个问题。
    我用ie可以正常用fckedior,如果是Chorome的话,就是看到一个大文本框。
      

  4.   

    发现了一个问题,我点保存的按钮时,就能出来编译器了。是不是,进入到这个页面他没加载上去,他的js文件啊。
    我按钮click事件说明都没写啊。。public partial class sys_notebook_modifynotebook : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {    }
        protected void Button1_Click(object sender, EventArgs e)
        {    }
    }
      

  5.   

    在这里有解决的办法,请参考:fckeditor编辑器php中文乱码终结