S
simon
If I try to comment some fields with <!--:
<!--<asp:TemplateColumn>
<HeaderTemplate>
<asp:Button ID="btnNew" CommandName="newType" Text="New Type" Runat="server"></asp:Button>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton text="DELETE" Visible='<%# Container.DataItem( "brisi" ) %>' CommandName="Delete" CommandArgument='<%# Container.DataItem( "mType_id" ) %>' Runat="server" ID="Linkbutton1"/>
</ItemTemplate>
</asp:TemplateColumn>-->
i get an error message:
Literal content ('<!--') is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'.
Any solution?
thank you,
Simon
<!--<asp:TemplateColumn>
<HeaderTemplate>
<asp:Button ID="btnNew" CommandName="newType" Text="New Type" Runat="server"></asp:Button>
</HeaderTemplate>
<ItemTemplate>
<asp:LinkButton text="DELETE" Visible='<%# Container.DataItem( "brisi" ) %>' CommandName="Delete" CommandArgument='<%# Container.DataItem( "mType_id" ) %>' Runat="server" ID="Linkbutton1"/>
</ItemTemplate>
</asp:TemplateColumn>-->
i get an error message:
Literal content ('<!--') is not allowed within a 'System.Web.UI.WebControls.DataGridColumnCollection'.
Any solution?
thank you,
Simon