解决FCKeditor在ASP.NET AJAX的UpdatePanel控件中按钮回调后内容丢失的问题
时间:2010-11-04 来源:caicainiao
</script>
2.在Page_Load事件中为Button的Click添加该JS方法:
if (!IsPostBack)
{
lkbPost.Attributes.Add("onclick", "if (typeof(MyObject) != \'undefined\'){
MyObject.UpdateEditorFormValue(); return true;}else{return true;}");
}
3.另外,如果在FCKeditor控件中加入了图片等信息,需要将页面的ValidateRequest设置为false。完毕。
2.在Page_Load事件中为Button的Click添加该JS方法:
if (!IsPostBack)
{
lkbPost.Attributes.Add("onclick", "if (typeof(MyObject) != \'undefined\'){
MyObject.UpdateEditorFormValue(); return true;}else{return true;}");
}
3.另外,如果在FCKeditor控件中加入了图片等信息,需要将页面的ValidateRequest设置为false。完毕。
相关阅读 更多 +