Solved

Dynamic URL in sitemap for Menu Control

Posted on 2007-11-16
2
216 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:BobCSD
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 500 total points
Comment Utility
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
Comment Utility
Sorry, the actual event is MenuItemDataBound
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now