<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个项目放到它们应该在的地方。
该错误来自于试图呈现一个控件,该控件内部有一个要在服务器时间呈现的块。我正在尝试弄清楚是否应该选择服务器端的dropdownlist,然后迭代通过子控件或其他什么。
发布于 2012-09-20 02:38:44
您的代码块对于资源文件是错误的。
你的代码块:
<%= Resources.bicweb_resouces.TRUE %>它应该是什么:
<%$ Resources: bicweb_resources, TRUE %>您还可以使用控件的TEXT属性来填充数据,而不是将它们嵌套在标记中。
信息来源:http://msdn.microsoft.com/en-us/library/d5bd1tad(v=vs.100).aspx
https://stackoverflow.com/questions/12499298
复制相似问题