User-589644965 posted
Hi all,
How is it possible to disable the css friendly for a certain control? For example for a derived DataList control? I would like to achieve the following:
<table class="silver">
<thead>
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
</thead>
<tbody>
<esc:EviDataList ID="dlComponents" runat="server" RepeatLayout="Flow">
<ItemTemplate>
<tr>
<td class="silver">
<asp:Literal ID="ltHardwarePin" runat="server" Text='<%#Eval("HardwarePin") %>' />
</td>
</ItemTemplate>
</esc:EviDataList>
</tbody>
<tfoot>
<tr>
<td>
<esc:EviPager ID="ePager" runat="server" />
</td>
</tr>
</tfoot>
</table>
Because I want to use user controls for the header and the footer later on i need the DataList just to render the declared content and no automatic tables around it.
Edit: for sure i can comment the entry in the CSSFriendlyAdapterBrowser
<!--<adapter controlType="System.Web.UI.WebControls.DataList"
adapterType="CSSFriendly.DataListAdapter" />-->
But there must be a better solution for specific control instances.
Thx!