asp.net的skin文件中控件可以嵌套吗?
我们用的控件能设置的属性太多, 所以我们想用skin文件来统一一些控件属性.
<ComponentArt:Grid runat="server"
Width="98%"
CssClass="Grid"
PageSize="10"
>
<Levels>
<ComponentArt:GridLevel
AlternatingRowCssClass="AlternatingRow"
DataCellCssClass="DataCell"
SortImageHeight="5">
</ComponentArt:GridLevel>
</Levels>
</ComponentArt:Grid>
这是个第三方表格控件, 使用的时候需要设定datasource, 之后再运行DataBind方法.
如果skin文件这么写, DataBind方法会报错, 提示我Property not found in object of type EmployeeOrganization.
如果删除skin文件里的
<ComponentArt:GridLevel
AlternatingRowCssClass="AlternatingRow"
DataCellCssClass="DataCell"
SortImageHeight="5">
</ComponentArt:GridLevel>
则运行正常, 而且skin里的设定也是生效的.
我就是想问问大家有没有遇到过这种问题, 是不是skin文件里不能有这种标签的嵌套?