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


Similar Messages:

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

Determine The Current Controller Action In An Mvc Sitemap?

Jul 13, 2010

I'm stuck with a problem of which I can not imagine I am the first person having to deal with it. Yet, Google comes up with nothing useful and neither does SO, so here I am. I'm using ASP.NET MVC1 with a sitemap. Using an html helper I create a navigation menu that highlights the current selected option in the Site.Master page. Common scenario and easily done by using:


foreach ( SiteMapNode subnode in node.ChildNodes) {
if (SiteMap.CurrentNode == subnode) { //got ourselves the current here }
}

That's all fine and dandy, however, my problem is that I have 1 controller with multiple actions. Consider the following scenario:

Accounts
* clients
* suppliers
* maintainance

They would all be in my AccountController, doing a search that is identical but with a different AccountTypeId value. When I read the SiteMap.CurrentNode value it gives me merely the info that I am using the AccountController, but not which action I called. I've tried a whole bunch of things but I can not get the action that was requested. I hope I gave enough info there to give you an idea of the scenario. If you need anything else, let me know.

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

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

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

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

AJAX :: Nested Accordion Menu With Submenu Using Sitemap

Mar 24, 2014

I got requirement to create a accordion menu which will have different menus for different site collection.
So, i created this Accordion which is in bind with site map file. But my Sitemap file has multi-level nodes, here my accordion is displaying only single level menus.

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

AJAX :: Display Horizontal Menus In Menu Control Using Sitemap

May 7, 2015

I am following the article [URL] .....

but I am not able to see my links horizontally

Here is my site map file

<?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=""
roles="*">

[Code] ....

The access to these links are controlled by membership provider.

Home is accessed by everyone. "Member Home" and MyBiz are accessed when the user is logged in.

The menu should have only Home displayed and when the user is logged in then it should displaym Home, MemberHome, MyBiz and sub links.

Here is the code for menu control

<asp:Menu ID="HorizontalMenuId" runat="server"
DataSourceID="SiteMapDataSource1" Orientation="Horizontal">
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="main_menu" />
<asp:MenuItemStyle CssClass="level_menu" />
</LevelMenuItemStyles>
</asp:Menu>

View 1 Replies







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