FCK编辑器+更新面板+ ValidateRequest =“false”?

时间:2011-03-08 13:58:36

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

当我将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 Control位于UpdatePanel内。

1 个答案:

答案 0 :(得分:2)

Page.ClientScript.RegisterOnSubmitStatement(EditorID.GetType(), "editor", "FCKeditorAPI.GetInstance('" + EditorID.ClientID + "').UpdateLinkedField();");