chelvis
11-30-2006, 06:54 PM
I am using a repeater control and in that I have set the font through a stylesheet. But I want to change the color of the font if the user is in specific page.
For example I have links like Home Products Categories
These text are white in color (blue background table)
If the user clicks on the Products, then the products should show in yellow. How can I do it with a repeater control? I am using a style sheet.
Here is the code:
<ItemTemplate>
<td align="left">
<asp:HyperLink ID="HyperLink1" CssClass="nav_bar_text" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "url_link")%>' Text='<%#DataBinder.Eval(Container.DataItem, "text")%>' runat="server" />
</td>
</ItemTemplate>
For example I have links like Home Products Categories
These text are white in color (blue background table)
If the user clicks on the Products, then the products should show in yellow. How can I do it with a repeater control? I am using a style sheet.
Here is the code:
<ItemTemplate>
<td align="left">
<asp:HyperLink ID="HyperLink1" CssClass="nav_bar_text" NavigateUrl='<%#DataBinder.Eval(Container.DataItem, "url_link")%>' Text='<%#DataBinder.Eval(Container.DataItem, "text")%>' runat="server" />
</td>
</ItemTemplate>