我綁定到ASP.NET GridView CommandField的皮膚。 一切工作正常,只是當我將CommandField屬性聲明從頁面移動到皮膚文件時,整個commandField屬性將被忽略。這裏是我的皮膚文件:ASP.NET CommandField和皮膚
<asp:GridView
AllowPaging="true"
AllowSorting="false"
AutoGenerateEditButton="false"
AutoGenerateDeleteButton="false"
AutoGenerateSelectButton="false"
AutoGenerateColumns="false"
GridLines="None"
PageSize="20"
ShowFooter="false"
ShowHeader="true"
runat="server">
<Columns>
<asp:CommandField
ButtonType="Image"
ControlStyle-Width="25"
EditImageUrl="Images/Icons/pencil.png"
DeleteImageUrl="Images/Icons/cross.png"
/>
</Columns>
</asp:GridView>
在web.config我只適用StyleSheetTheme。我想念什麼?
感謝