简体   繁体   English

ASP.NET WebApp不适用于自定义模板(来自商店)

[英]ASP.NET WebApp don't work with Custom Template (from store)

I have jQuery based template from themeforest and i building on this ASP.NET Web Application. 我有来自themeforest的基于jQuery的模板,并且我在此ASP.NET Web应用程序上构建。

But i have a problem, when my javascripts files from template are included, my asp.net things don't work how should, eg. 但是我有一个问题,当包括模板中的javascripts文件时,我的asp.net东西不起作用,应该如何工作,例如。 dropdownlist events not rising... When i comment javascript templates file then everything works fine. dropdownlist事件没有上升...当我评论javascript模板文件时,一切正常。

Someone can help me solve this? 有人可以帮我解决这个问题吗?

Thanks, 谢谢,

Many jQuery UI elements (dialog, for example) are rendered at the end of the BODY tag. 许多jQuery UI元素(例如,对话框)在BODY标签的末尾呈现。 This means their contents are moved outside the FORM tag, and are thus ignored by ViewState. 这意味着它们的内容被移到FORM标记之外,因此被ViewState忽略。 This will prevent their associated events from being triggered (and will prevent their updated data from making it back to the code-behind at all). 这将防止触发其关联的事件(并将完全阻止其更新的数据返回到后台代码)。

If you use firebug to examine the rendered HTML, you should be able to confirm whether this is the root cause of your problem. 如果您使用Firebug检查呈现的HTML,则应该能够确认这是否是问题的根本原因。

If so, see this SO discussion for a resolution / workaround. 如果是这样,请参阅此SO讨论以获取解决方案/解决方法。 HTH 高温超导

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM