Ajax中的UpdatePanel与Freetextbox兼容问题

在Ajax中的UpdatePanel与Freetextbox兼容问题的解决方案:

protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Page.ClientScript.RegisterClientScriptInclude("FTB-<a href="http://www.freetextbox.com" mce_href="http://www.freetextbox.com" target=_blank>FreeTextBox</a>", VirtualPathUtility.MakeRelative(Request.Path, "~/scripts/FTB-<a href="http://www.freetextbox.com" mce_href="http://www.freetextbox.com" target=_blank>FreeTextBox</a>.js")); Page.ClientScript.RegisterClientScriptInclude("FTB-Utility", VirtualPathUtility.MakeRelative(Request.Path, "~/scripts/FTB-Utility.js")); Page.ClientScript.RegisterClientScriptInclude("FTB-Toolbars", VirtualPathUtility.MakeRelative(Request.Path, "~/scripts/FTB-ToolbarItems.js")); Page.ClientScript.RegisterClientScriptInclude("FTB-ImageGallery", VirtualPathUtility.MakeRelative(Request.Path, "~/scripts/FTB-ImageGallery.js")); Page.ClientScript.RegisterClientScriptInclude("FTB-Pro", VirtualPathUtility.MakeRelative(Request.Path, "~/scripts/FTB-Pro.js")); } } 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); }

你可能感兴趣的:(Ajax,String,function,object)