UpdatePanel和FreeTextBox控件的兼容问题

来源:互联网 发布:淘大网络 编辑:程序博客网 时间:2024/06/09 21:05

在使用freeTextBox的那个页面(当然那个页面时有updatePanel的前提下)的后台代码中加入这两个方法:

public new void RegisterOnSubmitStatement(string key, string script)
{
     ScriptManager.RegisterOnSubmitStatement(this, typeof(Page), key, script);
}


[Obsolete]
public override void RegisterStartupScript(string key, string script)
{
     string newScript = script.Replace("FTB_AddEvent(window,'load',function () {", "").Replace("});", "");
     ScriptManager.RegisterStartupScript(this, typeof(Page), key, newScript, false);
}

原创粉丝点击