使用ASP.NET ajax中的updatePanel 后js失效的问题,http://www.cnblogs.com/clingingboy/archive/2007/10/10/920038.html介绍的详细些,

现在说下最简单的解决办法: 

既然ScriptManager没给注册那手动把脚本注册上就可以了ScriptManager.RegisterStartupScript可以实现在AJAX内注册脚本

举一个弹出窗口的例子:

 ScriptManager.RegisterStartupScript(thisthis.GetType(), "提示""alert('OK,终于可以看见我了!')"true);

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2021-11-03
  • 2021-12-10
  • 2021-09-29
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-06-27
  • 2021-10-01
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案