Rank: Newbie Groups: Member
Joined: 5/29/2009 Posts: 6
|
I am using the web.sitemap file (via the SiteMapDataSource), and need to insert a separator line in my menu.
My question is: what entry do I make in my web.sitemap file so that the menu control will insert a separator line?
Thank you!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can handle the menu's ItemDataBound event. That event is called for every item created during data binding. You can then set the newly created item's IsSeparator to true based on whatever condition that you may have (for example, if "title" is set to "-").
Thanks!
|
Rank: Newbie Groups: Member
Joined: 5/29/2009 Posts: 6
|
Worked perfectly. Thanks!!
|