2011-03-08 143 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