解决办法如下
1. 将<%= 换为<%#
2. 在.asp或模板页中的Page_Load事件中添加如下代码
实现代码如下:
Page.Header.DataBind();
以上就是【解决 The Controls collection cannot be modified because the control contains code blocks】的全部内容了,欢迎留言评论进行交流!
以上就是【解决 The Controls collection cannot be modified because the control contains code blocks】的全部内容了,欢迎留言评论进行交流!