由于控件包含代码块,因此无法修改控件集合 [英] The Controls Collection Cannot Be Modified Because the Control Contains Code Blocks

查看:57
本文介绍了由于控件包含代码块,因此无法修改控件集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我正在用户控件中使用xml和xslt创建动态asp.net菜单,但发生以下错误

控件集合无法修改,因为控件包含代码块。



我在简单的aspx页面中使用相同的代码一切顺利。



PLZ帮助。



谢谢

解决方案

您是否包含了一些脚本文件或css文件,并使用 ResolveURL 来访问这些文件?

见下面的链接可能是您的错误的解决方案:

aspnet -controls-collection-can-can [ ^ ]

the-controls-collection-can-be-modified-because-the-control-contains-code-block [ ^ ]

Hello Everyone,

I''m creating a dynamic asp.net menu using xml and xslt in a user control but the following error occurs
The Controls Collection Cannot Be Modified Because the Control Contains Code Blocks .

while I use the same code in simple aspx page all goes right.

plz help.

Thank you

解决方案

Have you included some script files or css files and used ResolveURL for accessing those files?
See below link which might be solution to your error:
aspnet-controls-collection-cannot-be[^]
the-controls-collection-cannot-be-modified-because-the-control-contains-code-block[^]


这篇关于由于控件包含代码块,因此无法修改控件集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆