Menu Only Show Certain Nodes In Web.sitemap

May 25, 2010

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).

View 3 Replies


Similar Messages:

Web Forms :: How To Show Menu With Sitemap Based On Sql Server Data

Jan 6, 2011

How to show menu with sitemap based on sql server data?

View 1 Replies

Web Forms :: Displaying Images In Sitemap Nodes?

Apr 15, 2010

Is there a way to display an image within a sitemap node, so that the image will display in my menu? I have a series of nodes that open external webpages, and I would like to display a small icon next to the text of that node so that a user knows that link will open a new window. I've seen this done on other sites using aspx, but can't figure out how it's done.

View 1 Replies

Forms Data Controls :: How To Hide Sitemap Nodes

Jul 13, 2010

in my Database i have created 3 Categories

1) Admin
2) User
3) Standard User

How to hide any node (and it's child nodes) based upon roles without configuring the SiteMapProvider to enable security or securityTrimmingEnabled="true" .

View 1 Replies

Web Forms :: Sitemap: Can't Sub Nodes Further Restrict Role Access

Sep 24, 2010

I have a menu in my application (created from the sitemap) which I want available to two user roles. However, there are items on that menu, I want available only to one role or the other. So I have created the following in my sitemap.

[Code]....

Essentially, I want employees with the "TimeUser" role to see the "My Profile" link that goes to the EmpProfile.aspx page, but not the link to the client profile page. However, when an employee logs in, they see both. I am guessing this may be because the "My Account" node which contains them allows both roles. Is there a way around this without duplicating the "My Account" node?

View 2 Replies

Web Forms :: Dynamic Sitemap, Add/Remove Nodes On User Selections Within Webpages?

Mar 4, 2010

I want to determine if the following could be implememted using a sitemap and menu control.

I have implemented the selection and navigation using tables and urls.

Each page request the querystring data, get the sql data and create the required selection and navigation urls.

Customers.aspx contains a list of customers with a url for each customer.

[code]....

Can I use a sitemap and menu or tree to provide the back navigation described in the scenario above.

Is it possible to modify the url for one or more sitemapnodes based on a user selection on a page?

Is it possible to add/remove sitemapnodes based on a user selection on a menu?

View 1 Replies

Web Forms :: Hide Nodes In Menu Control?

Nov 12, 2010

I have the following Menu control:

[Code]....

How do I hide the root node and some other nodes if I do not want it to show on the navigation menu?

View 15 Replies

Usability - Missing Popout Class In Menu For Nodes Without URL

Sep 13, 2010

I'm having a little problem with the popout icon in the ASP menu control not appearing when the sitemap node doesn't have a URL. Take the following sitemap nodes as an example:

<siteMapNode title="Top 1" url="~/Top1.aspx">
<siteMapNode title="Sub 1" url="~/Sub1.aspx" />
</siteMapNode>
<siteMapNode title="Top 2">
<siteMapNode title="Sub 2" url="~/Sub2.aspx" />
</siteMapNode>

The first top level item - Top 1 - gets a popout CSS class written to the tag that spans the label. However the second top level item - Top 2 - does not get the class. Given this class is generally used to hold the arrow indicating there's more content beneath the item there's a bit of a usability problem here. Does anyone have a workaround for this? Or alternatively, is a sitemap node without a URL attribute somehow breaking the intended usage of the control?

View 2 Replies

Web Forms :: How To Control Visibility Of Menu Nodes Depending On User Role

Apr 16, 2010

I have a Menu control in MasterPage based on web.sitemap file. My website has roles enabled (AspNetWindowsTokenRoleProvider) and uses Windows authentication mode. So, user has to be in a specific Windows Group to be able to access the site. I need to allow some users to see all menu nodes and some restricted set of nodes. How do I do that?

I would like to be able to create, say following Windows groups:

domain_namemy_app_users
domain_namemy_app_superusers
domain_namemy_app_admins

and code sitemap nodes this way:

<siteMapNode url="~/MOC_Masterdata_MOC_Approvers_Plain.aspx" title="MOC Approvers" description="MOC Approvers" />

View 5 Replies

Web Forms :: Display Child Nodes Of A Particular Parent As Two Column Flyout Menu?

Jun 3, 2010

I am able to bind the asp:menu with xml nodes.

My Question is how can I display my child nodes of a particular parent as 2 column flyout menu.

find the screenshot below:

[URL]

View 2 Replies

Web Forms :: Why Not All The Nodes Show In IE6

Feb 8, 2010

why not all the nodes show in IE6?

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="default.aspx" title="Home" description="Welcome To Aurelio's Restaurant">
<siteMapNode url="" title="Menu" description="Our Menu" >
[code]...

View 2 Replies

Web Forms :: How To Use Menu Control Using Sitemap

Jul 26, 2010

i want to use menu control using sitemap , i have master ,transaction, report, i want to display my menu control

in horizontel way how to use menu control , iam using asp.net with csharp

View 2 Replies

Web Forms :: How To Edit Value In Menu With Sitemap

Jan 2, 2011

I have a menu which datasource is a SiteMapDataSource wich works fine.

But now I have in the codebehind to make some of the values in the menu invisible.

My SiteMapDataSource look like this:

[Code]....

My menu look like this:

[Code]....

Now I want to in the codbehind to make the blog invisible - how to do this?

[Code]....

View 5 Replies

Adjusting Fontcolor On A Sitemap Menu?

Oct 20, 2010

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.

<td class="style3" bgcolor="#E3D8B6" width="200px" style="float: right; color: #FFFFFF;">
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1" StaticDisplayLevels="2" ForeColor="White" ItemWrap="True" BorderStyle="Solid" StaticSubMenuIndent="0px" BorderWidth="1px">
<StaticSelectedStyle Font-Italic="True" BackColor="#1C5E55" />
<DynamicSelectedStyle BackColor="#343055" ForeColor="White" />
<StaticHoverStyle BackColor="#332F54" ForeColor="White" />
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</td>

and then in the sitemap file.

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="" forecolor="white">
<siteMapNode url="Default2.aspx" title="Default2" description=""/>
<siteMapNode url="HomePage.aspx" title="HomePage" description="" />
<siteMapNode url="GoogleForm.aspx" title="Google" description="" />
<siteMapNode url="FacebookForm.aspx" title="Facebook" description=""/>
</siteMapNode>
</siteMap>

View 2 Replies

C# - Creating Three Level ASP Menu With SiteMap

Feb 10, 2010

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? :)

<asp:Repeater ID="FirstLevel" DataSourceID="SiteMapDataSource" runat="server" EnableViewState="false">
<ItemTemplate>
<li class="top">
<a href='/About/<%#Eval("Title")%>.aspx' class="top_link"><span class="down"><%#Eval("Title")%></span><!--[if gte IE 7]><!--></a><!--<![endif]-->
<asp:Repeater runat="server" ID="SecondLevel" DataSource='<%#((SiteMapNode)Container.DataItem).ChildNodes%>'>
<HeaderTemplate><!--[if lte IE 6]><table><tr><td><![endif]--><ul class="sub"></HeaderTemplate>
<ItemTemplate>
<li>
<a href='<%#((string)Eval("Url")).Replace("~", "")%>' style="text-align: left;"><%#Eval("Title")%></a>

Third repeater here?

</li>
<ItemTemplate>
<FooterTemplate></ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></FooterTemplate>
</asp:Repeater>
</li>
</ItemTemplate>
</asp:Repeater>

View 2 Replies

How To Use Menu Controller Web Sitemap With Different Image

Jan 22, 2012

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>

And this CSS

Code:
#nav { position: absolute; top: 65px; right: 0pt; width: 487px; height: 61px; }
#nav ul { float: left; padding: 0pt; margin: 0pt; list-style: none outside none; }
#nav li { float: left; width: auto; }
#nav a { display: block; width: auto; text-indent: -9999px; height: 21px; background: url('nav.png') no-repeat scroll 0pt 0pt transparent; }

[Code] ....

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.

View 3 Replies

Web Forms :: How To Get Disappeared Web.sitemap And Menu Control

Mar 19, 2010

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.

View 4 Replies

Web Forms :: Linking Menu To Sitemap Not Working?

Jun 8, 2010

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.

Think I might be missing some component?.

View 7 Replies

Web Forms :: Putting Box Around Sitemap Menu Items?

Jan 14, 2010

How can I put a box around each of my Sitemap menu items? Also what are my options for graphically manipulating these Sitemap menu items?

View 4 Replies

VS 2010 - Menu Item Hiding Using SiteMap?

Mar 25, 2011

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?

[Code]....

View 9 Replies

JQuery :: Finding Tutorials For SiteMap Menu Using CSS?

Mar 5, 2011

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?

View 2 Replies

Security :: Retrieving Web.sitemap Results Outside Of The Menu?

Nov 16, 2010

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:

<siteMapNode url="~/Reports/Reports.aspx" title="Reports" description="Reports" roles="Managers,Users">
<siteMapNode url="~/Reports/LettersReport.aspx" title="Letters Report" description="Letters Report" roles="Managers,Users" />
<siteMapNode url="~/Reports/UserSummaryReport.aspx" title="User Summary Report" description="User Summary Report" roles="Managers" />
<siteMapNode url="~/Reports/LetterSummaryReport.aspx" title="Letter Summary Report" description="Letter Summary Report" roles="Managers,Users" />
</siteMapNode>

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?

View 1 Replies

TreeNodeBinding Show The Innertext Of All Child Nodes?

Mar 21, 2011

I have a TreeView control on a ASP.Net page, and the data will be populate by DataBinding, using XMLDataSource.

<asp:TreeView id="treeview1" runat="server" DataSourceID="xmlDataSource1">
<DataBindings>
<asp:TreeNodeBinding DataMember="All" TextField="#InnerText" />
<asp:TreeNodeBinding DataMember="Categorie" TextField="#InnerText" />
<asp:TreeNodeBinding DataMember="Question" TextField="#InnerText" ValueField="id" />
</DataBindings>
</asp:TreeView>

The XML Data document is as follow:

<All>
<ProjectName>
Project A
<Categorie>

[code]....

It's like something wrong with the TreeNodeBinding. But changing the TextField to example "Value" doesn't work (empty node text).

i don't use XSLT transform file. The Xml will be given directly to the XmlDataSource.

View 1 Replies

Web Forms :: Web.sitemap - Default1.aspx Create One And Second Menu?

Feb 11, 2011

I want to create my menu, but something is not clear. I have:

-Default1.aspx
-Default2.aspx
-Web.sitemap

Default1.aspx:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
</ asp: Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource10" runat="server" />
Default2.aspx:
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
</ asp: Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource10" runat="server" />
Web.sitemap:
<? xml version = "1.0" encoding = "utf-8"?>
<siteMap xmlns[URL]
<siteMapNode url="test" title="test" description="">
<siteMapNode url="" title="test" description="" />
<siteMapNode url="" title="" description="" />
</ siteMapNode>
</ sitemap>

Both the menu are the same. How to Default1.aspx create one menu, and how to create Default2.aspx second menu?

View 1 Replies

AJAX :: Bind A Sitemap To An Accordion For A Simple Menu?

Jan 24, 2011

Is it possible to bind a sitemap to an accordion for a simple menu?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved