The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)

来源:互联网 发布:arm-linux-g c 11 编辑:程序博客网 时间:2024/04/26 01:41
在使用<%=myValue%>的时候,会出现这个问题的原因在于,该节点或者是父节点使用了runat="servcer",去掉这句话就行了。