Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Try this:</p> <p>Right click on your project "add new item" then choose "Site Map", it will have an XML structure that looks like:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" &gt; &lt;siteMapNode url="~/Default.aspx" title="Home " description=""&gt; &lt;siteMapNode url="~/the page URL" title="Products" description="" &gt; &lt;siteMapNode url="~/the page URL" title=" %product_name%" description="" &gt; &lt;siteMapNode url="~/the page URL" title="Prices" description="" /&gt; &lt;/siteMapNode &gt; &lt;/siteMapNode &gt; &lt;/siteMapNode &gt; &lt;sitemap&gt; </code></pre> <p>** adding description for each node is optional.</p> <p>Now you need to place it where you want, so you add this code in the HTML side of the page:</p> <pre><code>&lt;asp:SiteMapPath ID="SiteMapPath1" runat="server"&gt; &lt;CurrentNodeStyle CssClass="Some class" /&gt; &lt;PathSeparatorTemplate&gt; &lt;img runat="server" alt="" src="an image to separate between nodes" height="5" width="5" /&gt; &lt;/PathSeparatorTemplate&gt; &lt;/asp:SiteMapPath&gt; </code></pre> <hr> <p>Of course you have two pages - one for product and one for prices.</p> <p>To assign Tile dynamically for some node in the SiteMap; add this code in the Prices Page:</p> <p>1) In the page load:</p> <pre><code>SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(SiteMap_SiteMapResolve); </code></pre> <p>2) Add this function in the same page (prices page):</p> <pre><code> SiteMapNode SiteMap_SiteMapResolve(object sender, SiteMapResolveEventArgs e) { SiteMapNode currentNode = SiteMap.CurrentNode.Clone(true); SiteMapNode tempNode = currentNode; tempNode.ParentNode.Title = "Change the Product name"; tempNode.ParentNode.Url = "Change the Product url"; return currentNode; } </code></pre> <p>As you can see you can manipulate the parent Node as you want, change the title, the url, etc. I think you want to change the url too; for example: "product.aspx?ID=blah"</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload