Solved

ASP.NET Menus - SiteMapControl for non-site map menu content?

Posted on 2013-02-01
2
223 Views
Last Modified: 2013-02-01
Many times when I read about asp.net menus the article or post refers to the SiteMapControl.  I kinda get what that's about, however, I'm building just an arbitrary menu, that invokes JS functions, not page URLs.

Can I still use the SiteMapControl for that, or would I run into problems that would make that not such a good idea?

Any help with this would be appreciated.

Thanks!
0
Comment
Question by:codequest
2 Comments
 
LVL 41

Accepted Solution

by:
guru_sami earned 500 total points
ID: 38844292
My understanding is that shouldn't be a problem invoking js. I haven't given it a try but at the end they are rendered links.
Edit: I take that back. With default SiteMapProvider and .sitemap file, if the url isn't a valid url in the website, the link isn't rendered.

I think in such cases you might have to write your custom SiteMapProvider.
0
 
LVL 2

Author Closing Comment

by:codequest
ID: 38844560
thanks, big help to stop thinking about that option
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

910 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

22 Experts available now in Live!

Get 1:1 Help Now