Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我正在研究 dotnetnuke 模块。我开发了一个模块。这个模块有不同的效果。我使用不同的中继器来实现不同的效果。如果我在一个页面中添加两个模块。Jscript 无法正常工作。我怎么解决这个问题 。
问题可能是您使用的javascript被添加了两次,每个模块实例一次。您应该从代码隐藏中使用 RegisterClientScriptBlock 和/或 RegisterClientScriptInclude 以便将 Javascript 添加到页面。通过使用它,它将防止脚本被添加两次。