ASP.NET AJAX 使用UpdatePanel后JS失效
使用ASP.NET ajax中的updatePanel 后js失效的问题,http://www.cnblogs.com/clingingboy/archive/2007/10/10/920038.html介绍的详细些,
现在说下最简单的解决办法:
既然ScriptManager没给注册那手动把脚本注册上就可以了ScriptManager.RegisterStartupScript可以实现在AJAX内注册脚本
举一个弹出窗口的例子:
ScriptManager.RegisterStartupScript(this, this.GetType(), "提示", "alert('OK,终于可以看见我了!')", true);