我是否也必须向自定义控件声明 Aspnet 托管权限属性
我开发了一个具有客户端功能的自定义控件,该控件继承自 Checkboxlist
类。这是否意味着我的自定义控件将具有从父类派生的 aspnet 托管权限,或者我应该再次声明它?
出现这个问题是因为该控件在 IIS 上同时在本地主机(开发计算机)上运行,并且也发布到 IIS 中,但在发布到托管服务器时却不起作用(该控件的客户端脚本输出未呈现,这就是问题所在) 。
对于对 aspnet 托管权限一无所知的人,您可以花 5 分钟 这里
I developed a custom control with client capabilities that inherits from Checkboxlist
class. Does this mean my custom control would have aspnet hosting permissions derived from the parent class or should I declare it again?
This question popped up because the control worked on local host (dev machine) while on IIS and also published into IIS, but didn't on publishing to the hosting server (the client scripts output from the control are not being rendered that's the problem).
For people who don't have faintest idea about aspnet hosting permissions you can spend 5 minute here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,问题有所不同,由于主板上的 CMOS 电池电量不足,服务器上的时间远远落后于 2011 年。我设置了日期和时间时间到了,刷新页面,所有的荣耀就在那里:)看看 这篇文章了解更多信息
Actually the problem was something different, the time on Server was way back behind like 2011 due to a weak CMOS battery on the board. I set the Date & Time to current, refreshed the page and there it was with all the glory :) have a look at this post for more info