473,834 Members | 2,333 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

binding sitemappath with custom .sitemap file

Hi,

How can I bind sitemappath (breadcrumb control of asp.net) to a custom
..sitemap file?

By defualt its looking for web.sitemap file and giving me not found
exception.

Thanks
Danial
Apr 1 '06 #1
1 3108
DWS
Danial,
You link to your custom sitemap from the standard sitemap see this link.
http://msdn2.microsoft.com/en-us/library/ms178426.aspx

To use the sitemappath you just fill in the templates. It builds a table
and what I didn't know when I built my first one is that I should have use li
elements for maximum css designer effect but we're all learning here its 2.0
stuff. You might not even need the following.

<table>
<tr>
<asp:SiteMapPat h ID="SiteMapPath 1" runat="server"
RenderCurrentNo deAsLink="True"
PathDirection=" CurrentToRoot" PathSeparator=" "
SkipLinkText="" >
<CurrentNodeTem plate>
<td>
<a id="A1" title='<%# Eval("descripti on") %>'
runat="server">
<img id="Img1" runat="server" src='<%#
eval("image") %>' height="76" /><br />
<%# Eval("title") %>
</a>
</td>
</CurrentNodeTemp late>
<NodeTemplate >
<td>
<a href='<%# eval("url") %>' title='<%#
Eval("descripti on") %>' runat="server">
<img runat="server" src='<%# eval("image") %>'
height="47" /><br />
<%# Eval("title") %>
</a>
</td>
</NodeTemplate>
</asp:SiteMapPath >
</tr>
</table>

Good Luck
DWS
"Danial" wrote:
Hi,

How can I bind sitemappath (breadcrumb control of asp.net) to a custom
..sitemap file?

By defualt its looking for web.sitemap file and giving me not found
exception.

Thanks
Danial

Apr 1 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2613
by: Robert Camsky | last post by:
Hi, I've got web.sitemap file with few nodes and subnodes and SiteMapPath control. It works fine. But imagine, I'm worrking on an calender implemented this way: calendar.aspx -> showing upcomming events calendar.apsx?year=2005 showing calendar for year 2005 calendar.apsx?year=2005&month=1 showing january in 2005 calendar.aspx?year=2005&month=1&day=1 showing 1/1/2005
1
4532
by: Jules | last post by:
In a ASP.NET 2.0 project I'd like to set an image as path separator in the SiteMapPath. When I edit the PathSepartor template (for this SiteMapPath) and drag an image on it, it works fine for all pages in the root of the Web project. VS2005 creates the folling aspx: <asp:SiteMapPath ID="SiteMapPath" runat="server"> <PathSeparatorTemplate> <img src="Images/arrow-right.jpg" /> </PathSeparatorTemplate> </asp:SiteMapPath>
1
1304
by: sean.marchetti | last post by:
Hello, I am having a little difficulty coming up with a solution for the following requirement and I was hoping somebody might be able to offer some help. I need to create a SiteMapPath for a category system that supports any number of nested categories. Here's what I mean: Category A Category B Category C
0
1797
by: Mike | last post by:
I want to use a SiteMapPath control (storing the map in web.sitemap) and URL mapping in the web.config file to control navigation for my website. I also want to have in my querystring (no cookies allowed) a custom sessonID so that each pages URL would be http://www.website.com/PageName.aspx?MySessionID=9JHJY79. My question is: How can I ensure that the sessionID is appended to the URL used by controls using the web.sitemap (Menus,...
3
4464
by: Uriah Piddle | last post by:
Hi Gang, I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to an 'Article' leaf node. But the Article page shows one of many individual articles depending on which article the user chooses in the Articles page. The way it is set up now, if the user selects a particular article in the 'Articles' page, the SiteMap looks like this: '. . . Articles Article'. Assuming the user choses a cookie baking article, I would like...
1
2485
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level section navigation provided via a horizontal menu, a SiteMapPath to provide a breadcrumb and a vertical menu component on the left edge.
2
4269
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
I’m trying to create a dynamic asp.net 2.0 siteMapPath control (using VB.net). Using the xml sitemap I’ve got these three pages: productGroup.aspx productListing.aspx productDetail.aspx Each page receives a query string i.e. productGroup.aspx?id=9 The page then renders with the appropriate details which have been accessed
1
2391
by: =?Utf-8?B?bWljaGFlbHJp?= | last post by:
We are dynamically changing the title property of nodes in our sitemappath to reflect the names of products by handling the SiteMapResolve event. We have some unicode characters in our product names, stored in our db using escape characters like: "è" When we set the SiteMapNode.Title to that value it is escaped by the sitemappath to "è" which results in the ampsand and code being printed out vs the desired character of: è
0
951
by: Jeremy Olmstead | last post by:
I would like to be able to have a SiteMapPath recognize an item from the Web.sitemap file, but have a site Menu, based off from the same Web.sitemap file, not recognize the same item. In other words, I would like a page to show the "breadcrumb" path of where in the site a certain page is located, but I do not want them to be able to link to this page directly from the site menu. Is this possible and if so, how can it be done? Thanks,...
0
9643
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7754
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5624
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5790
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3079
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.