当我将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内。
答案 0 :(得分:2)
Page.ClientScript.RegisterOnSubmitStatement(EditorID.GetType(), "editor", "FCKeditorAPI.GetInstance('" + EditorID.ClientID + "').UpdateLinkedField();");