Data Controls :: How To Bind Accordion Menu Using Sitemap File
May 7, 2015
I have an accordion menu like this :
Builder ( Main UL , without href )
Create Builder ( Navigates to CrtBuilder.aspx)
Remove Builder ( Navigates to RmvBuilder.aspx)
Supplier (Main UL)
Create Supplier ( Navigates to CrtSupplier.aspx )
Remove Supplier Navigates to RmvSupplier.aspx
Now if a user clicks on CreateBuilder Menu then the user must see the site map in my breadcrumb like this :
Home > Builder > Create Builder
same way for supplier :
Home > Supplier > Create Supplier
remember ( on clicking Home the page must navigates to abc.aspx)
View 1 Replies
Similar Messages:
Jan 24, 2011
Is it possible to bind a sitemap to an accordion for a simple menu?
View 3 Replies
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
Sep 21, 2010
I am looking for an accordion menu code sample to load it from the xml file rather than hardcoding the file names in the mark-up. if you are aware of any such menu controls? (something like the one at this link [URL]. it will be nice if I can pin it to the left as well)
View 1 Replies
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
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
Nov 4, 2010
How would I programatically reference a .sitemap file that is not the root web.sitemap file? I have a file called research.sitemap in a folder a level under root. I want to refernce this file in my code behind like his: SiteMapNode m1 = SiteMap.RootNode (but since this isnt web.sitemap in the root, I dont know how to get access to it).
View 1 Replies
Jan 12, 2011
i want bind my database to the accordion. do Be done with datasource.
View 1 Replies
Sep 3, 2012
is there is any control in asp.net to mange for creating menu using database and mange when it's click link it open in iframe
View 1 Replies
Jan 6, 2011
How to show menu with sitemap based on sql server data?
View 1 Replies
Mar 28, 2014
In my project i have a navigation bar which shows the different types of recipes e.g: Healthy Recipes, Desserts, etc...
In the same page i have a gridview which is binded by database (RecipeTable) to show the list of recipes available.
My problem is how should i bind gridview with the navigation bar selection.
e.g: when a user clicks on Healthy Recipe the gridview should show the recipes saved under healthy recipes type.
View 1 Replies
May 11, 2010
We are getting this error message when we try to click the link in the menu to go to Report Server:
Source Error:
Line 31: <siteMapNode title="Reports" description="Reports">
Line 32:
Line 33: <siteMapNode url="https://ffxsqldgc01.ffx.co.fairfax.va.us/Reports/Pages/Folder.aspx?ItemPath=%2fDPZ&ViewMode=List" title="View Reports"
description="Click here to view the reports" />
Line 34: </siteMapNode>
Line 35:
I tried to add after the &, as it was suggested on one of the forum but it did not work. Any other ideas.
View 5 Replies
Nov 24, 2010
I want to bind data to content template of the accordion pane on the header click event of the pane. I can bind data to content template now but it is making unnecessary db calls when it tried to load intially since the data for the content template comes from different source. In order to avoid that i want o bind data to Content template only when the user is interested to look at the data. let me know how can i achieve this. Below is the sample on what on I am trying to do.
View 2 Replies
Jun 3, 2010
I've been using a repeater to build a website's site map page by binding to the web.sitemap file. For example, to display 2 levels of links:
[Code]....
So far, everything works well. However, in some cases, I do not want to display certain pages in the site map. I've added a custom attribute to each node (nodisplay= 'true').How can i check for this attibute, and avoid it from being displayed by in the repeater.
View 3 Replies
Aug 27, 2010
i am using ajaxtoolkit:combobox and i tried to bind data to this control in code behind file.but it is taking 3 to 4 mints to bind data and display the page. I am providing my aspx code and code behind code here
[Code]....
Code behind code:
[Code]....
GetPrograms() method will return almost 6000 records. to load the control it is taking almost 4 minuts..
View 4 Replies
Oct 6, 2010
I am creating a CacheDependency on the file that my SiteMap provider uses. I would like to get the name of the file from my sitemap provider instead of hard coding it. Is there a way?
Edit
Duh, I forgot to mention: XmlSiteMapProvider that comes with ASP.NET
Edit 2
Reflector shows a private member field called _filename that isn't exposed in any way as far as I can tell.
View 1 Replies
Mar 21, 2011
I have a Sitemap and I am planning to query it programmatically and filter it, something likefrom SiteMapNode smnode in SiteMap.RootNode.GetAllNodes()
..do somethingMy question is how do I approach the above. I mean on what event can I query it and how to then bind it to the TreeView?
View 1 Replies
Mar 4, 2010
In my ASP.NET Page_load I have this code:
[Code]....
Where SiteMenu is an Asp:menu control. But for some reason I'm getting a menu with one element with name "siteMap" and a child element with name "siteMapNode".
I would like to have only one element (rappresented by the <SiteMapNode> xml tag ) with title "default". what I'm doing wrong?
I don't want to use a file but an XML string.
View 1 Replies
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
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
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
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
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
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
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