<tr runat="server" >
<th><%= Resources.bicweb_resources.BORDER_STYLE %></th>
<td>
<asp:DropDownList runat="server" id = "borderContent" class = "attribute" >
<asp:ListItem value = "NULL">
</asp:ListItem>
<asp:ListItem value = "0" >
<%= Resources.bicweb_resources.FALSE %>
</asp:ListItem>
<asp:ListItem value = "1">
<%= Resources.bicweb_resources.TRUE %>
</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
あなたは私が内部のものを設定していることを見ることができます...
ListItems は runatserver ではないので、3 つのアイテムを本来あるべき場所に配置する方法を考えていました。
このエラーは、サーバー時にレンダリングする内部ブロックを持つコントロールをレンダリングしようとした場合に発生します。サーバー側でドロップダウンリストを選択してから、子コントロールなどを反復処理する必要があるかどうかを判断しようとしています。