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


Similar Messages:

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

Web Forms :: Administration - View / Edit / Add / Delete Of The SiteMap

Feb 4, 2010

I have code for C# but I need code for VB.NET. When I try converting this code to VB.NET I get more errors. convert this code to VB.NET. For programmers who know C# and VB.NET this converting take about 10 minutes. It consists of a derived XmlSiteMapPRovider as suggested by Steve, and an accompanying web admin page, allowing view/edit/add/delete of the sitemap nodes. it assumes unique titles in all pages, which may not be true for other apps, the code could easily be modified to specify a key or other
attribute.

web admin page aspx code: [Code]....
web admin page code behind: [Code]....
XmlSiteMapProvider code: [Code]....
and finally, the web.config settings:[Code]....

View 3 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

Web Forms :: Binding A Menu Control To Sitemap File Dynamically?

Oct 7, 2010

I have a problem with binding a menu control to a sitemap file dynamically.

the files...

[code]

this files are into the 'tesorera' folder in the estructure of my project

When I run the project there aren't errors but I can't see the menu items of the sitemap file, I only see the 'siteMap' word in the menu .... why?

View 5 Replies

Web Forms :: Manipulating The Format Of A Sitemap Menu Control In A Masterpage

Oct 21, 2010

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.

View 4 Replies

Web Forms :: Menu - Role Security Not Working On Second Level Of Sitemap

Sep 24, 2010

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>

View 3 Replies

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 :: How To Create Button Menu Using Web.sitemap With Roles Filter

Aug 18, 2010

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?

View 2 Replies

Web Forms :: Sitemap Dropdown Menu Is Not Appearing In Local Host?

Mar 2, 2010

When i run the site in local host the site map menu headers are appearing, but on mouseover the dropdown items are not appearing.

View 4 Replies

Web Forms :: Dynamically Create Sitemap At Runtime From Menu Created From Db?

Apr 20, 2010

I have a menu of products which are created at runtime from the database and populated into menu control.

But i need to also create a sitemap and display when the relevant menu or submenu item is selected

View 1 Replies

Web Forms :: How To Use Icons And Image In SiteMap File For Menu Control

Oct 26, 2013

I have menu control bind with website map. I have added some new links in my menu so I want to add a icon "New reports" so user can view it.

How to add icon in website map file with link.

View 1 Replies

Web Forms :: How To Edit 'siteMapFile' Attribute Of SiteMap Provider In Web.config Dynamically

Dec 13, 2010

I want to add/edit available siteMap providers in web.config file from code behind.

I am using the siteMap providers currently in the application web.config in a format given below:

<siteMap>
<providers>
<add siteMapFile="~/App_Themes/MyAppDefault/MySiteMap.sitemap"
name="MyAppDefault" type="System.Web.XmlSiteMapProvider" />
</providers>
</siteMap>

This is allowing my application user to show up a different Site Map as and when the theme is changed.

But when I tried to do the same with the following code I faced with an issue.

configuration = WebConfigurationManager.OpenWebConfiguration("~")
section = CType(configuration.GetSection("system.web/siteMap"), SiteMapSection)
Dim provider As New ProviderSettings()
If Not section Is Nothing Then
provider.Name = txtError.Text
provider.Type = "System.Web.XmlSiteMapProvider"
section.Providers.Add(provider)
configuration.Save()
End If

This code is not allowing a provider.siteMapFile property (provideer is the ProviderSettings object).
As well the maximum possible way I can add a new SiteMap provider in web.config is as follows

<siteMap>
<providers>
<add name="MyAppCustom" type="System.Web.XmlSiteMapProvider" />
</providers>
</siteMap>

If anybody can suggest a way for me to add/edit the 'siteMapFile' attribute of the provider.

View 1 Replies

AJAX :: Menu Control With Dynamic Url / Set The Menu Items As Enable/disable In Two Different Modes Say Edit/new?

Feb 22, 2010

I need a help in creating a vertical oriented Menu control with dynamic url's set in there Navigate Url property.Also i need to set the menu items as enable/disable in two different modes say edit/new.

View 1 Replies

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

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

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

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