Hi,
newbie2C#: Is there a visited property that can be used to change the color of the items in my dynamic menu that have already been clicked on? Would this be controlled with the anchor properties?
In fact, the menitem's text is a link at the render time, so you can define the link's visited style of the dynamic menu.
For example, define the DynamicMenuItemStyle's CssClass :
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
<DynamicMenuItemStyle CssClass="item" />
</asp:Menu>
Then you can define the link's style for the DynamicMenuItemStyle, like below:
<style type="text/css">
.item A:link {text-decoration: none}
.item A:visited {text-decoration: none}
.item A:active {text-decoration: none}
.item A:hover {text-decoration: underline; color: red;}
</style>
If I misunderstand you, please let me know.
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support