【问题标题】:FCK Editor + Update Panel + ValidateRequest="false"?FCK 编辑器 + 更新面板 + ValidateRequest="false"?
【发布时间】:2011-03-09 17:44:51
【问题描述】:

当我将 fckEditor 设置为某个值时

fckDescription.Value = "Description Text";

它会产生问题,例如 Update Panel 没有为 DropDownList 控件执行 Async PostBack 并在 DropDownList 选择更改时出错:

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

但是当我评论这些行时

// fckDescription.Value = "Description Text";

效果很好...我想知道为什么会这样!!?!!

另外,fckEditor 位于 UpdatePanel 外部,DropDownList 控件位于 UpdatePanel 内部。

【问题讨论】:

标签: c# asp.net updatepanel fckeditor serverside-javascript


【解决方案1】:
Page.ClientScript.RegisterOnSubmitStatement(EditorID.GetType(), "editor", "FCKeditorAPI.GetInstance('" + EditorID.ClientID + "').UpdateLinkedField();");

【讨论】:

  • 当我将它添加到我的 Page_Load 事件时它工作了
猜你喜欢
  • 2011-10-05
  • 2013-12-17
  • 2011-03-10
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多