什么会导致: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
我问,因为,该代码不包含代码块。无处不在。在整个网站的任何页面上都没有一个<%=%>区块。我所有的是<%@%>指示线。 编辑: 下面是导致错误的代码。 /// <summary>
我想为不同的用户角色提供不同的选项。这里是我的代码: Private Function GetApprovedBy() As String
If User.Identity.Name = "officer" Then
Return "Approved by Officer"
ElseIf User.Identity.Name = "manager" Then