Re: CSS of tag, within a Repeater ItemTemplate

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Sorry I should have worded that differently:

How do I _change_ the css class of the tag.

Basically the css class of the tag in the repeater item needs to be
programmatically set whenever the repeater loads.

"dtarczynski" <dtarczynski@xxxxxxxxx> wrote in message
news:1175608886.061291.147610@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 3 Kwi, 15:36, "JJ" <a...@xxxxxxx> wrote:
I'm sure this is quite simple, but clearly not for me today:

How do you set the CSS Style of a tag in a repeater Item Template?

Maybe try this:

<asp:Repeater runat="server" ID="rpt_SubCategoryList"
OnItemCreated="rpt_SubCategoryList_ItemCreated">
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li class="yourCSSClass"><a href=' '>Some Text Here</a></li>
<-----------------
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:Repeater>




.



Relevant Pages