-
Skinning, Resources and Eval workaround?
Here is the premise:
I need to be able to allow skinning of a stock control using the Theme.SkinFile system.
It needs to be able to use values from a global resource file, and call eval, as it will be databound.
Here are the issues:
Lines like <%$ resources:file, key%> and <%# Eval("Key") %> are not valid in skin files.
Here is what the code looks like page side:
<asp:ListViewID="SampleList"SkinID="SampleListSkin"runat="server"/>
here is what the skin looks like:
<asp:ListViewSkinID="SampleTable"runat="server">
<LayoutTemplate>
<table>
<tr>
<tdclass="thead"><%$ Resources:locale, name%></td>
<tdclass="thead"><%$ Resources:locale, value%></td>
</tr>
<asp:PlaceHolderID="itemPlaceholder"runat="server"/>
<tr>
<tdclass="tfoot">-</td>
<tdclass="tfoot">-</td>
</tr>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<tdclass="trow"><%# Eval("Key")%></td>
<tdclass="trow"><%# Eval("Value")%></td>
</tr>
</ItemTemplate>
</asp:ListView>
The above was also tried using and asp:literal to the same effect.
Now, how do I solve this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks