I've made a web page from the tutorials in "How do I" to link a menu to web.sitemap.
I build the site and no errors come up, the site opens in my browser, part of the menus work but the menu that links to the sitemap is not displaying the menu contents.
I've run the code on another machine and also made the code in VWD2010 and it runs as it should.
Un-installed and re-installed VWD 2008 and still no luck.
I have role assignments on both the first and second level of my menus within my sitemap file. The first level works fine, and I only see items assigned to my role. But roles assignments seem to have no effect on the second level. It seems like if you have access to the first level, you have access to everything on the second level. Is this correct?
From my sitemap (either a SalesRep or an Administrator can see everything underneath): <siteMapNode title="Administration" roles="SalesRep,Administrator" description="Admin" > <siteMapNode title="CompanyMaintenance" roles="SalesRep" url="~/Admin/CompanyManagement.aspx" /> <siteMapNode title="Initialize Roles" roles="Administrator" url="~/Admin/Roles.aspx"/> </siteMapNode>
I have a sitemap file included in a asp.net masterpage that I want to use CSS to format. Unfortunately, I'm having some problems getting the web.sitemap file to read the CSS file. The following is my code for the Web.sitemap file. Could someone give me the code for getting my document to read the CSS file. The following is a copy the code I have now.
I have a horizontal menu control populated (in static mode: StaticDisplayLevels="1" MaximumDynamicDisplayLevels="0") from a site map.
I have another vertical menu control in the left toc of the page that I want to populate from the same sitemap but to be the children of the node selected in the first menu.
I have two dropdowns menu in detailsview (Both one table) . I want to change items in the second dropdown when the user selects an item in the first dropdown.
What I did as following but it does not work :
Add an empty SelectedIndexChanged event on the first dropdown and then, bind the second to the first under Selectedvalue. Also, sat AutoPostBack="True" on first dropdown.
this is probably something stupid that i am forgetting to do but its got me stumped. I have a web.sitemap file in my app with the following entries
[Code]....
i then slapped a sitemapdatasource into my masterpage with a menu control and changed the design in the designer. I then run the app for my default page /Pages/Default.aspx. when the page comes up i see "Home" with a flare out arrow. when i mouse over home it shoots out a small box, as expected, to the right which obscures my text on the default page. the problem is the flared out box is blank and then i try move over it, essentially moving off home it dissapears. If im not mistaken, even if my links are broken or dont extist i should at least see the text right? so when i mouse over home, in the flareout menu i should see Dive, DIve Location, User, Client, Cert at least in unclickable plain text or something.
I'm trying to develop a webpage for a small college who want to keep the format similar to an existing webpage. I've created an ASP.NET master page and included a menu (web.sitemap) to navigate the various pages of the school's site. However, I'm trying to format the menu to match their existing old style html websites.
I need to place a line between the various items of the menu. I've tried border but I need the lines to appear above and below the items (or inbetween) and not on the left and right. I've read that I may have to use CSS to format it the way I want but i can't figure out the code to so.
When I login to application, i want Button ad a Header menu like (Admin,Quote....2 button should visible).
If Login User is Admin/Quote then Click on that Button it should show all its child nodes must be as the button horizontally.
[Code]....
Even i have to write the code in the Code Behind of Site.Master. I think i need Repeter's OnItemCommand event but it does not run that methods and how can i filter the sitemap with Role in this Method? I can not able to Find the control in the Code Behind.. Is it possible to show these type of custom menus using SiteMap with Role Filteration?
I have a few items apart of my Web.sitemap file that rely on querystring or session variables. I do not want these items to appear in my menu. Is there a way to hide it from the menu, but still be in the sitemap (for sitepath control).
I'm trying to change the font color of a sitemap to white. The color is white in the developer screen but black in the browser when I run it. In fact, it should change to white when I hover over it but it does not.
Here is my code perhaps someone could see what I'm doing wrong.
I want to create a three level menu, I have got a recursive function today that works with three levels. But the thing is how do i output the third lever? Using two repeaters i have managed to get a hold of the first two levels through the ChildNodes property. But that only gives me the second level. What if a want the third level? Example code below. How do i get the third level? :)
I am playing with vb.net and have made a menu, with the menu.controller and the web.sitemap, its work fine but its the same hover image and the same background image im using.
I have an image with: 5 Textlink, 5 Hover Textlink, 5 Activ Textlink. Normal I can use this without the web.sitemap and menu.controller.
Code: <div id="nav"><ul> <li><a href="http://www.tester.com/" id="home">Home</a></li> <li><a href="http://www.tester.com/about-me/" id="about" title="About Me">About Me</a></li> <li><a href="http://www.tester.com/the-portfolio/" id="portfolio" title="View the Portfolio">View the Portfolio</a></li> <li><a class="active" href="http://www.tester.com/the-blog/" id="blog" title="The Blog">The Blog</a></li> <li><a href="http://www.tester.com/get-in-contact/" id="contact" title="Get in Contact">Get in Contact</a></li> </ul></div>
My question is, how can I convert this, so i can use it in a menu.controller/web.sitemap, so i have 5 different image as background for the link and 5 different for the hover effect and then 5 different background image for the activelink/page.
I have a menu control which is based on a sitemap as below.
However whilst the security aspect is working i.e. users cannot access a page without being in the correct role the menu does not seem to hide any of the menu items.
I really want users only to see the help menu item before they log in, then after this point they should see all items unless they are External in which case the Uploads and Admin Items should be hidden.
Is this not possible or have I set up my sitemap wrong?
If I remove roles="*" from the first node no menu items are visible at all even after login?
I am using asp.net sitemap with the in-built asp.net menu but this is very 'dull'. I want to apply CSS and jQuery to give it a better visual look and feel. I have read various articles based on[URL] However, i really liked
[URL]
Is there any examples or tutorials similar to this which are FREE?
I understand how web.sitemap works in conjunction with the site's menu in order to make menu/submenu choices visible/invisible depending on the authenticated user's roles.
For example, part of my web.sitemap has the following which defines 3 reports. Then, once users log in, those with "Managers" role can see all 3 reports while those with "Users" role can only see the 1st and the 3rd report:
How can I retrieve these results outside of the menu process? For example, in one of my web pages, I may need to create a dropdown list which should be populated with the results of the menu process.
How can I make the dropdown list show all 3 items when a manager has logged in but only 1st and 3rd items when a user has logged in?