关于在线编辑器的一个奇怪的问题

当页面具有postback事件发生时在线编辑器会工作不正常表现现象如下:
     FCKEditor 会不再显示
    CuteEditor 页面会出错,页面再也不能进行编辑
    FreeTextBox 会报未知错误
代码如下:
< atlas:UpdatePanel  ID ="NewTaskUpdatePanel"  runat ="server"  Mode ="Conditional" >
      
< ContentTemplate >
        
< asp:FormView  ID ="NewTaskFormView"  runat ="server"  DataKeyNames ="TaskID"  DataSourceID ="NewTaskDataSource"  DefaultMode ="Insert"  GridLines ="None"  EnableViewState ="false"  OnItemInserted ="NewTaskFormView_OnItemInserted"  Width ="100%" >
          
< InsertItemTemplate >
            
< asp:Panel  ID ="HeaderPanel"  runat ="server"  Style ="cursor: pointer;" >
              
< div  class ="NewDataHeader" >
                
< asp:Image  ID ="ToggleImage"  runat ="server"  ImageUrl ="~/images/collapse.jpg"   />
                
<% =  Resources.Resource.New  +  Resources.Resource.Task  %>
              
</ div >
            
</ asp:Panel >
            
< asp:Panel  ID ="ContentPanel"  runat ="server"  Style ="overflow: hidden;" >
              
< div  class ="NewDataItem" >
                
< div  class ="NewDataTitle" >
                  
<% =  Resources.Resource.TaskName  +   " "   %>
                  
< asp:TextBox  ID ="NewTaskTaskNameTextBox"  runat ="server"  CssClass ="TextBoxUnWatermarked"  Width ="80%"  Text ='<%#  Bind("TaskName") % > '> </ asp:TextBox >
                
</ div >
                
< div  class ="NewDataColumns" >
                  
< div  class ="NewDataColumn" >
                    
<% --<atlas:UpdatePanel ID="NewTaskUpdatePanel" runat="server" RenderMode="Block" EnableViewState="true" Mode="Always">
                      
<ContentTemplate>--
%>
                        
<% =  Resources.Resource.Project  +   " " %>
                        
< asp:ObjectDataSource  ID ="NewTaskProjectDataSource"  runat ="server"  ConflictDetection ="OverwriteChanges"  DataObjectTypeName ="AIO.WITDB.Project"  DeleteMethod ="Delete"  EnableCaching ="True"  OldValuesParameterFormatString ="original_{0}"  SelectMethod ="GetAllProjects"  TypeName ="AIO.WITDB.Project"  UpdateMethod ="Update" ></ asp:ObjectDataSource >
                        
< asp:DropDownList  ID ="NewTaskProjectList"  runat ="server"  AppendDataBoundItems ="true"  AutoPostBack ="true"  CssClass ="DropDownList"  DataSourceID ="NewTaskProjectDataSource"  DataTextField ="ProjectName"  DataValueField ="ProjectID"  OnDataBound ="ProjectID_DataBind"  OnSelectedIndexChanged ="ProjectID_SelectedIndexChanged"  SelectedValue ='<%#  Bind("ProjectID") % > '>
                          
< asp:ListItem  Text ="<%$ Resources:Resource, NullText %>"  Value ="" >
                          
</ asp:ListItem >
                        
</ asp:DropDownList >
                        
<% --</div>
                      
<div class="NewDataColumn">--
%>
                        
<% =  Resources.Resource.ProjectArea  +   " " %>
                        
< WITUC:ProjectAreaTextBox  ID ="NewTaskProjectAreaTextBox"  runat ="server"  Value ='<%#  Bind("ProjectAreaID") % > ' />
                     
<% -- </ContentTemplate>
                    
</atlas:UpdatePanel>--
%>
                    
<% --<asp:TextBox ID="NewTaskProjectIDTextBox" runat="server" Text='<%# Bind("ProjectID") %>' Visible="false"></asp:TextBox>--%>
                    <%-- <div class="NewDataColumn">--
%>
                    
<% =  Resources.Resource.Department  +   " " %>
                    
< WITUC:DepartmentTextbox  ID ="NewTaskDepartmentTextbox"  runat ="server"  Text ='<%#  Eval("Department.DepartmentName") % > ' Value=' <% # Bind("DepartmentID" %> ' />
                    
<% --</div>
                  
<div class="NewDataColumn">--
%>
                    
<% =  Resources.Resource.Chief  +   " " %>
                    
< asp:ObjectDataSource  ID ="NewTaskChiefDataSource"  runat ="server"  ConflictDetection ="OverwriteChanges"  DataObjectTypeName ="AIO.WITDB.UserInfo"  DeleteMethod ="Delete"  EnableCaching ="True"  OldValuesParameterFormatString ="original_{0}"  SelectMethod ="GetAllUserInfos"  TypeName ="AIO.WITDB.UserInfo"  UpdateMethod ="Update" ></ asp:ObjectDataSource >
                    
< asp:DropDownList  ID ="NewTaskChiefList"  runat ="server"  AppendDataBoundItems ="true"  DataSourceID ="NewTaskChiefDataSource"  DataTextField ="FullName"  DataValueField ="UserID"  OnDataBound ="ChiefID_DataBind"  SelectedValue ='<%#  Bind("ChiefID") % > '>
                      
< asp:ListItem  Text ="<%$ Resources:Resource, NullText %>"  Value ="" >
                      
</ asp:ListItem >
                    
</ asp:DropDownList >
                    
<% -- </div>-- %>
                  
</ div >
                  
< div  class ="NewDataColumn" >
                    
<% =  Resources.Resource.State  +   " " %>
                    
< WITUC:SelectOptionDropDownList  ID ="NewTaskStateSelectOptionDropDownList"  runat ="server"  DefaultSelectOptionItem ="新建"  SelectOptionItem ='<%#  Bind("State") % > ' SelectTitle="任务状态" />
                    
<% --</div>
                  
<div class="NewDataColumn">--
%>
                    
<% =  Resources.Resource.Priority  +   " " %>
                    
< WITUC:SelectOptionDropDownList  ID ="NewTaskPrioritySelectOptionDropDownList"  runat ="server"  SelectOptionItem ='<%#  Bind("Priority") % > ' SelectTitle="优先级" />
                    
<% --</div>
                  
<div class="NewDataColumn">--
%>
                    
<% =  Resources.Resource.PlanStartDate  +   " "   %>
                    
< WITUC:DateTextBox  ID ="NewTaskPlanStartDateDateTextBox"  runat ="server"  Text ='<%#  Bind("PlanStartDate", "{0:yyyy-MM-dd}") % > ' />
                    
<% --</div>
                  
<div class="NewDataColumn">--
%>
                    
<% =  Resources.Resource.PlanEndDate  +   " " %>
                    
< WITUC:DateTextBox  ID ="NewTaskPlanEndDateDateTextBox"  runat ="server"  Text ='<%#  Bind("PlanEndDate", "{0:yyyy-MM-dd}") % > ' />
                  
</ div >
                
</ div >
                
< div  class ="NewDataBody" >
                  
<% =  Resources.Resource.Description  +   " " %>
                  
< br  />
                  
< CuteEditor:Editor  ID ="MainCuteEditor"  runat ="server"  EnableViewState ="false"  AutoConfigure ="Minimal"  ShowDecreaseButton ="true"  ShowToolBar ="true"  Text ='<%#  Bind("Description") % > ' ThemeType="Office2003" Width="100%">
                  
</ CuteEditor:Editor >
                 
<% -- <WITUC:EditorTextBox ID="NewTaskDescriptionEditorTextBox" runat="server" Text='<%# Bind("Description") %>' />--%>
                </div>
                
<div class="NewDataCommand">
                  
<asp:LinkButton ID="NewTaskInsertLinkButton" runat="server" CausesValidation="True" CommandName="Insert" Text="<%$ Resources:Resource, Insert %>"></asp:LinkButton>
                  
<asp:LinkButton ID="NewTaskLinkCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" Text="<%$ Resources:Resource, Cancel %>"></asp:LinkButton>
                
</div>
              
</div>
            
</asp:Panel>
            
<AIO:CollapsiblePanelExtender ID="cpe" runat="Server">
              
<AIO:CollapsiblePanelProperties CollapseControlID="HeaderPanel" Collapsed="false" CollapsedImage="~/images/expand.jpg" CollapsedText="Expand" ExpandControlID="HeaderPanel" ExpandDirection="Vertical" ExpandedImage="~/images/collapse.jpg" ExpandedText="Collapse" ImageControlID="ToggleImage" ScrollContents="false" SuppressPostBack="true" TargetControlID="ContentPanel" TextLabelID="Lable1">
              
</AIO:CollapsiblePanelProperties>
            
</AIO:CollapsiblePanelExtender>
          
</InsertItemTemplate>
        
</asp:FormView>
        
<asp:ObjectDataSource ID="NewTaskDataSource" runat="server" ConflictDetection="OverwriteChanges" DataObjectTypeName="AIO.WITDB.Task" DeleteMethod="Delete" EnableCaching="True" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetTask" TypeName="AIO.WITDB.Task" UpdateMethod="Update">
          
<SelectParameters>
            
<asp:QueryStringParameter ConvertEmptyStringToNull="False" Name="TaskID" QueryStringField="TaskID" />
          
</SelectParameters>
        
</asp:ObjectDataSource>
      
</ContentTemplate>
    
</atlas:UpdatePanel>


如果有谁知道怎么解决,请指教指教! 不胜感激!

你可能感兴趣的:(编辑器)