2011-03-08 86 views
0

当我设置FCKeditor的某个值像FCK编辑器+更新面板+ ValidateRequest =“false”?

fckDescription.Value = "Description Text"; 

它创造的问题,例如更新面板没有做异步回发的DropDownList控件,并给出错误时的DropDownList选择更改:

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

但是,当I 评论 out these lines

// fckDescription.Value = "Description Text"; 

它工作正常......我想知道为什么它是如此!!?!!

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

+0

@All http://forums.asp.net/p/1095266/1651601.aspx按照该链接设置'ValidateRequest =“假”'解决我的问题,现在但这并不是很好的解决方案,我认为如此... – 2011-03-08 14:14:41

回答

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

它工作时,我将它添加到我的Page_Load事件 – 2011-03-09 09:50:16