Solved

Dynamic URL in sitemap for Menu Control

Posted on 2007-11-16
2
218 Views
Last Modified: 2008-02-01
I want to create a menu control that uses a sitemap.

However, certain  menu items will have a query string with a value dependent upon the logged in user's preferences in order to go to a specific page.

How do I dynamically include the value in the query string, either within the site map, or in a control that uses a site map? or how?

thanks!
0
Comment
Question by:Starr Duskk
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
ID: 20304028
Hi,

you can modify the item's URL (and other values) in the Menu_ItemDataBound event, which occurs right after the values of the item have been set to the ones from the datasource (in your case, the SitemapDataSource).

Regards,
Darko
0
 
LVL 22

Expert Comment

by:DarkoLord
ID: 20304129
Sorry, the actual event is MenuItemDataBound
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question